From ea70aba69e5595a0af9d36502b8365a22fcddc09 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 8 Jun 2001 20:22:00 +0000 Subject: [PATCH] * ovsec_kadmd.c (main): Make format string to sprintf specify that long arguments are present. * kadm_rpc_svc.c: Include arpa/inet.h (if present) for inet_ntoa prototype. Include adm_proto.h for krb5_klog_syslog() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13316 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/server/ChangeLog | 8 ++++++++ src/kadmin/server/kadm_rpc_svc.c | 4 ++++ src/kadmin/server/ovsec_kadmd.c | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/kadmin/server/ChangeLog b/src/kadmin/server/ChangeLog index 511881b82..8ea630e11 100644 --- a/src/kadmin/server/ChangeLog +++ b/src/kadmin/server/ChangeLog @@ -1,3 +1,11 @@ +2001-06-08 Ezra Peisach + + * ovsec_kadmd.c (main): Make format string to sprintf specify that + long arguments are present. + + * kadm_rpc_svc.c: Include arpa/inet.h (if present) for inet_ntoa + prototype. Include adm_proto.h for krb5_klog_syslog() prototype. + 2001-06-04 Ezra Peisach * misc.c, schpw.c: Cleanup assignments in conditionals. diff --git a/src/kadmin/server/kadm_rpc_svc.c b/src/kadmin/server/kadm_rpc_svc.c index aa1e06cde..911bc737c 100644 --- a/src/kadmin/server/kadm_rpc_svc.c +++ b/src/kadmin/server/kadm_rpc_svc.c @@ -18,6 +18,10 @@ static char *rcsid = "$Header$"; #include #include #include +#include +#ifdef HAVE_ARPA_INET_H +#include +#endif /* * Function: kadm_1 diff --git a/src/kadmin/server/ovsec_kadmd.c b/src/kadmin/server/ovsec_kadmd.c index ca4bd0809..dade23a4c 100644 --- a/src/kadmin/server/ovsec_kadmd.c +++ b/src/kadmin/server/ovsec_kadmd.c @@ -296,7 +296,7 @@ int main(int argc, char *argv[]) "while initializing, aborting", whoami, (params.mask & REQUIRED_PARAMS) ^ REQUIRED_PARAMS); fprintf(stderr, "%s: Missing required configuration values " - "(%x) while initializing, aborting\n", whoami, + "(%lx) while initializing, aborting\n", whoami, (params.mask & REQUIRED_PARAMS) ^ REQUIRED_PARAMS); krb5_klog_close(context); kadm5_destroy(global_server_handle); -- 2.26.2