summaryrefslogtreecommitdiffstats
path: root/src/kadmin/v5server/srv_main.c
diff options
context:
space:
mode:
authorPaul Park <pjpark@mit.edu>1995-04-28 19:25:55 +0000
committerPaul Park <pjpark@mit.edu>1995-04-28 19:25:55 +0000
commit77f7de1bdb0c3630bd10abe8db52ea6610ed3fbb (patch)
tree783bacd0d22a49847613720b1664d1cd7f8075ed /src/kadmin/v5server/srv_main.c
parent62251ae673bcc761cd7765680394f9e7cac5d480 (diff)
downloadkrb5-77f7de1bdb0c3630bd10abe8db52ea6610ed3fbb.tar.gz
krb5-77f7de1bdb0c3630bd10abe8db52ea6610ed3fbb.tar.xz
krb5-77f7de1bdb0c3630bd10abe8db52ea6610ed3fbb.zip
Use new library libkadm.
Cleanup some type conflicts. Allow for case-insensitivity for protocol commands. Cleanup some include files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5624 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/v5server/srv_main.c')
-rw-r--r--src/kadmin/v5server/srv_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kadmin/v5server/srv_main.c b/src/kadmin/v5server/srv_main.c
index ff11545013..248e82aba8 100644
--- a/src/kadmin/v5server/srv_main.c
+++ b/src/kadmin/v5server/srv_main.c
@@ -102,7 +102,13 @@ kadm_com_err_proc(whoami, code, format, ap)
strcat(outbuf, " - ");
}
cp = &outbuf[strlen(outbuf)];
+#if HAVE_VSPRINTF
vsprintf(cp, format, ap);
+#else /* HAVE_VSPRINTF */
+ sprintf(cp, format, ((int *) ap)[0], ((int *) ap)[1],
+ ((int *) ap)[2], ((int *) ap)[3],
+ ((int *) ap)[4], ((int *) ap)[5]);
+#endif /* HAVE_VSPRINTF */
#ifndef DEBUG
syslog(LOG_AUTH|LOG_ERR, outbuf);
#endif /* DEBUG */