From: John Carr Date: Mon, 3 Dec 1990 05:34:51 +0000 (+0000) Subject: Delete unused variable; cast argument 1 to fwrite() X-Git-Tag: krb5-1.0-alpha3~70 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=717f31f2ef208c0d621d51665839323b3c6a8ca8;p=krb5.git Delete unused variable; cast argument 1 to fwrite() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1523 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 06d01379b..cd94d979c 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -603,7 +603,6 @@ char *argv[]; { char ktname[MAXPATHLEN+1]; FILE *fout; - krb5_keytab ktid; krb5_error_code retval; krb5_principal princ; krb5_db_entry dbentry; @@ -685,8 +684,8 @@ char *argv[]; fwrite(argv[1], strlen(argv[1]) + 1, 1, fout); /* p.name */ fwrite(argv[i], strlen(argv[i]) + 1, 1, fout); /* p.instance */ fwrite(cur_realm, strlen(cur_realm) + 1, 1, fout); /* p.realm */ - fwrite(&dbentry.kvno, sizeof(dbentry.kvno), 1, fout); - fwrite(key.contents, 8, 1, fout); + fwrite((char *)&dbentry.kvno, sizeof(dbentry.kvno), 1, fout); + fwrite((char *)key.contents, 8, 1, fout); printf("'%s' added to V4 srvtab '%s'\n", pname, ktname); memset((char *)key.contents, 0, key.length); free((char *)key.contents);