From: Ezra Peisach Date: Mon, 20 Jul 1998 15:34:04 +0000 (+0000) Subject: * schpw.c (process_chpw_request): Cast to krb5_octet * instead of X-Git-Tag: krb5-1.1-beta1~639 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=363ea96197bbf43e53bdc40d184a681e3c5c55c7;p=krb5.git * schpw.c (process_chpw_request): Cast to krb5_octet * instead of char * for krb5_address.contents type. This is a char * to unsigned char * warning fix. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10711 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index fa9506e96..e0e1a36ae 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 20 11:28:39 1998 Ezra Peisach + + * schpw.c (process_chpw_request): Cast to krb5_octet * instead of + char * for krb5_address.contents type. + Fri Feb 27 23:32:38 1998 Theodore Ts'o * Makefile.in: Changed thisconfigdir to point at the kadmin diff --git a/src/kadmin/server/schpw.c b/src/kadmin/server/schpw.c index c3901be92..f246571f8 100644 --- a/src/kadmin/server/schpw.c +++ b/src/kadmin/server/schpw.c @@ -140,7 +140,7 @@ process_chpw_request(context, server_handle, realm, s, keytab, sin, req, rep) local_kaddr.length = sizeof(((struct sockaddr_in *) &local_addr)->sin_addr); local_kaddr.contents = - (char *) &(((struct sockaddr_in *) &local_addr)->sin_addr); + (krb5_octet *) &(((struct sockaddr_in *) &local_addr)->sin_addr); } else { krb5_address **addrs; @@ -168,11 +168,11 @@ process_chpw_request(context, server_handle, realm, s, keytab, sin, req, rep) remote_kaddr.length = sizeof(((struct sockaddr_in *) &remote_addr)->sin_addr); remote_kaddr.contents = - (char *) &(((struct sockaddr_in *) &remote_addr)->sin_addr); + (krb5_octet *) &(((struct sockaddr_in *) &remote_addr)->sin_addr); remote_kaddr.addrtype = ADDRTYPE_INET; remote_kaddr.length = sizeof(sin->sin_addr); - remote_kaddr.contents = (char *) &sin->sin_addr; + remote_kaddr.contents = (krb5_octet *) &sin->sin_addr; /* mk_priv requires that the local address be set. getsockname is used for this. rd_priv requires that the