+2000-09-25 Ezra Peisach <epeisach@mit.edu>
+
+ * ser_ktf.c (krb5_ktf_keytab_externalize): Do not violate const char *
+ declaration of ktfile_def_name.
+
+ * ktf_util.c (xfwrite): Cast length field to fwrite/fread as unsigned.
+
1999-10-26 Wilfredo Sanchez <tritan@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
krb5_kt_vno krb5_kt_default_vno = KRB5_KT_DEFAULT_VNO;
-#define xfwrite(a, b, c, d) fwrite((char *)a, b, c, d)
-#define xfread(a, b, c, d) fread((char *)a, b, c, d)
+#define xfwrite(a, b, c, d) fwrite((char *)a, b, (unsigned) c, d)
+#define xfread(a, b, c, d) fread((char *)a, b, (unsigned) c, d)
#ifdef ANSI_STDIO
static char *fopen_mode_rbplus= "rb+";
krb5_int32 file_pos[2];
char *ktname;
size_t namelen;
- char *fnamep;
+ const char *fnamep;
required = 0;
bp = *buffer;
if (ktdata && ktdata->name)
fnamep = ktdata->name;
else
- fnamep = (char *) ktfile_def_name;
+ fnamep = ktfile_def_name;
namelen += (strlen(fnamep)+1);
if ((ktname = (char *) malloc(namelen))) {