* misc.c (printd): First argument now const.
* misc-proto.h: Modify printd prototype to take const first
argument.
* auth.c: Cast argument to memcpy to unsigned.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13593
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-08 Ezra Peisach <epeisach@mit.edu>
+
+ * kerberos.c (Data): Third argument now const.
+
+ * misc.c (printd): First argument now const.
+
+ * misc-proto.h: Modify printd prototype to take const first
+ argument.
+
+ * auth.c: Cast argument to memcpy to unsigned.
+
2001-07-06 Ezra Peisach <epeisach@mit.edu>
* configure.in: Check for need to provide setenv prototype if
auth_send_cnt = cnt;
if (auth_send_cnt > sizeof(_auth_send_data))
auth_send_cnt = sizeof(_auth_send_data);
- memcpy((void *)_auth_send_data, (void *)data, auth_send_cnt);
+ memcpy((void *)_auth_send_data, (void *)data,
+ (unsigned) auth_send_cnt);
auth_send_data = _auth_send_data;
auth_send_retry();
Name, cnt, (int) sizeof(savename)-1);
return;
}
- memcpy((void *)savename, (void *)data, cnt);
+ memcpy((void *)savename, (void *)data, (unsigned) cnt);
savename[cnt] = '\0'; /* Null terminate */
if (auth_debug_mode)
printf(">>>%s: Got NAME [%s]\r\n", Name, savename);
Data(ap, type, d, c)
Authenticator *ap;
int type;
- void *d;
+ const void *d;
int c;
{
unsigned char *p = str_data + 4;
- unsigned char *cd = (unsigned char *)d;
+ const unsigned char *cd = (const unsigned char *)d;
if (c == -1)
- c = strlen((char *)cd);
+ c = strlen((const char *)cd);
if (auth_debug_mode) {
printf("%s:%d: [%d] (%d)",
instance, 0, &adat, ""))) {
if (auth_debug_mode)
printf("Kerberos failed him as %s\r\n", name);
- Data(ap, KRB_REJECT, (void *)krb_err_txt[r], -1);
+ Data(ap, KRB_REJECT, (const void *)krb_err_txt[r], -1);
auth_finished(ap, AUTH_REJECT);
return;
}
void auth_encrypt_init P((char *, char *, char *, int));
void auth_encrypt_user P((char *));
void auth_encrypt_connect P((int));
-void printd P((unsigned char *, int));
+void printd P((const unsigned char *, int));
/*
* These functions are imported from the application
void
printd(data, cnt)
- unsigned char *data;
+ const unsigned char *data;
int cnt;
{
if (cnt > 16)