summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-09 15:35:01 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-09 15:35:01 +0000
commitbba14050dfff35c9fc2d7ce35042900748e8c5ae (patch)
treee86a7635d37867de217046a00da0538751e0ea5f /src
parentf99af24683e19c8a01d46298db9b4a99a9207fee (diff)
downloadkrb5-bba14050dfff35c9fc2d7ce35042900748e8c5ae.tar.gz
krb5-bba14050dfff35c9fc2d7ce35042900748e8c5ae.tar.xz
krb5-bba14050dfff35c9fc2d7ce35042900748e8c5ae.zip
* pmap_rmt.c, svc.c, svc_simple.c, svc_udp.c, svc_tcp.c,
xdr_array.c, xdr_reference.c : Include string.h for memset and memcmp prototypes. * auth_gssapi.c, auth_gssapi_misc.c, svc_auth_gssapi.c: Cast argment to PRINTF to match format. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13595 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/rpc/ChangeLog9
-rw-r--r--src/lib/rpc/auth_gssapi.c2
-rw-r--r--src/lib/rpc/auth_gssapi_misc.c4
-rw-r--r--src/lib/rpc/svc.c1
-rw-r--r--src/lib/rpc/svc_auth_gssapi.c8
-rw-r--r--src/lib/rpc/svc_simple.c1
-rw-r--r--src/lib/rpc/svc_tcp.c1
-rw-r--r--src/lib/rpc/svc_udp.c1
-rw-r--r--src/lib/rpc/xdr_array.c2
-rw-r--r--src/lib/rpc/xdr_reference.c1
10 files changed, 22 insertions, 8 deletions
diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog
index 910ee4a50..bc5c27bf3 100644
--- a/src/lib/rpc/ChangeLog
+++ b/src/lib/rpc/ChangeLog
@@ -1,3 +1,12 @@
+2001-07-09 Ezra Peisach <epeisach@mit.edu>
+
+ * pmap_rmt.c, svc.c, svc_simple.c, svc_udp.c, svc_tcp.c,
+ xdr_array.c, xdr_reference.c : Include string.h for memset and
+ memcmp prototypes.
+
+ * auth_gssapi.c, auth_gssapi_misc.c, svc_auth_gssapi.c: Cast
+ argment to PRINTF to match format.
+
2001-07-08 Ezra Peisach <epeisach@mit.edu>
* svc.c (xprt_register): If svc_fdset has not been initilized,
diff --git a/src/lib/rpc/auth_gssapi.c b/src/lib/rpc/auth_gssapi.c
index e16fe686b..9c22abdf0 100644
--- a/src/lib/rpc/auth_gssapi.c
+++ b/src/lib/rpc/auth_gssapi.c
@@ -394,7 +394,7 @@ next_token:
goto cleanup;
} else if (isn_buf.length != sizeof(rpc_u_int32)) {
PRINTF(("gssapi_create: gss_unseal gave %d bytes\n",
- isn_buf.length));
+ (int) isn_buf.length));
goto cleanup;
}
diff --git a/src/lib/rpc/auth_gssapi_misc.c b/src/lib/rpc/auth_gssapi_misc.c
index e7c38a820..810bd7829 100644
--- a/src/lib/rpc/auth_gssapi_misc.c
+++ b/src/lib/rpc/auth_gssapi_misc.c
@@ -121,7 +121,7 @@ bool_t auth_gssapi_unseal_seq(context, in_buf, seq_num)
return FALSE;
} else if (out_buf.length != sizeof(rpc_u_int32)) {
PRINTF(("gssapi_unseal_seq: unseal gave %d bytes\n",
- out_buf.length));
+ (int) out_buf.length));
gss_release_buffer(&minor_stat, &out_buf);
return FALSE;
}
@@ -227,7 +227,7 @@ bool_t auth_gssapi_wrap_data(major, minor, context, seq_num, out_xdrs,
}
PRINTF(("gssapi_wrap_data: %d bytes data, %d bytes sealed\n",
- in_buf.length, out_buf.length));
+ (int) in_buf.length, (int) out_buf.length));
/* write the token */
if (! xdr_bytes(out_xdrs, (char **) &out_buf.value,
diff --git a/src/lib/rpc/svc.c b/src/lib/rpc/svc.c
index 5c82b44b7..74e9f9149 100644
--- a/src/lib/rpc/svc.c
+++ b/src/lib/rpc/svc.c
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)svc.c 1.41 87/10/13 Copyr 1984 Sun Micro";
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_clnt.h>
#include <stdio.h>
+#include <string.h>
extern int errno;
diff --git a/src/lib/rpc/svc_auth_gssapi.c b/src/lib/rpc/svc_auth_gssapi.c
index f3257383f..633ba5bc6 100644
--- a/src/lib/rpc/svc_auth_gssapi.c
+++ b/src/lib/rpc/svc_auth_gssapi.c
@@ -169,7 +169,7 @@ enum auth_stat _gssrpc_svcauth_gssapi(rqst, msg, no_dispatch)
XDR_DESTROY(&xdrs);
PRINTF(("svcauth_gssapi: got credentials, version %d, client_handle len %d\n",
- creds.version, creds.client_handle.length));
+ creds.version, (int) creds.client_handle.length));
if (creds.version != 2) {
PRINTF(("svcauth_gssapi: bad credential version\n"));
@@ -222,7 +222,7 @@ enum auth_stat _gssrpc_svcauth_gssapi(rqst, msg, no_dispatch)
PRINTF(("svcauth_gssapi: incoming client_handle %d, len %d\n",
*((rpc_u_int32 *) creds.client_handle.value),
- creds.client_handle.length));
+ (int) creds.client_handle.length));
client_data = get_client(&creds.client_handle);
if (client_data == NULL) {
@@ -600,7 +600,7 @@ enum auth_stat _gssrpc_svcauth_gssapi(rqst, msg, no_dispatch)
if (creds.client_handle.length != 0) {
PRINTF(("svcauth_gssapi: freeing client_handle len %d\n",
- creds.client_handle.length));
+ (int) creds.client_handle.length));
gssrpc_xdr_free(xdr_authgssapi_creds, &creds);
}
@@ -610,7 +610,7 @@ enum auth_stat _gssrpc_svcauth_gssapi(rqst, msg, no_dispatch)
error:
if (creds.client_handle.length != 0) {
PRINTF(("svcauth_gssapi: freeing client_handle len %d\n",
- creds.client_handle.length));
+ (int) creds.client_handle.length));
gssrpc_xdr_free(xdr_authgssapi_creds, &creds);
}
diff --git a/src/lib/rpc/svc_simple.c b/src/lib/rpc/svc_simple.c
index 28f192cba..44c757315 100644
--- a/src/lib/rpc/svc_simple.c
+++ b/src/lib/rpc/svc_simple.c
@@ -39,6 +39,7 @@ static char sccsid[] = "@(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";
*/
#include <stdio.h>
+#include <string.h>
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_clnt.h>
#include <sys/socket.h>
diff --git a/src/lib/rpc/svc_tcp.c b/src/lib/rpc/svc_tcp.c
index 3ea99aaad..371d059cd 100644
--- a/src/lib/rpc/svc_tcp.c
+++ b/src/lib/rpc/svc_tcp.c
@@ -42,6 +42,7 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
*/
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
diff --git a/src/lib/rpc/svc_udp.c b/src/lib/rpc/svc_udp.c
index ca30bcde5..9aea69c18 100644
--- a/src/lib/rpc/svc_udp.c
+++ b/src/lib/rpc/svc_udp.c
@@ -40,6 +40,7 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
*/
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
diff --git a/src/lib/rpc/xdr_array.c b/src/lib/rpc/xdr_array.c
index a1841abe7..97c6dc73d 100644
--- a/src/lib/rpc/xdr_array.c
+++ b/src/lib/rpc/xdr_array.c
@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro";
*/
#include <stdio.h>
-
+#include <string.h>
#include <gssrpc/types.h>
#include <gssrpc/xdr.h>
diff --git a/src/lib/rpc/xdr_reference.c b/src/lib/rpc/xdr_reference.c
index 501f62121..7c7f0c24e 100644
--- a/src/lib/rpc/xdr_reference.c
+++ b/src/lib/rpc/xdr_reference.c
@@ -41,6 +41,7 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
*/
#include <stdio.h>
+#include <string.h>
#include <gssrpc/types.h>
#include <gssrpc/xdr.h>