summaryrefslogtreecommitdiffstats
path: root/src/kadmin/cli/getdate.y
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-10-03 14:46:35 +0000
committerEzra Peisach <epeisach@mit.edu>2000-10-03 14:46:35 +0000
commit853975fe9bf83ac6d9c624625d45cc667dc20739 (patch)
treed4b9160dee263ecbd9d271408349acffefe85f94 /src/kadmin/cli/getdate.y
parentbe06fd7f499cf90eaa48616118ff56288e88f461 (diff)
downloadkrb5-853975fe9bf83ac6d9c624625d45cc667dc20739.tar.gz
krb5-853975fe9bf83ac6d9c624625d45cc667dc20739.tar.xz
krb5-853975fe9bf83ac6d9c624625d45cc667dc20739.zip
* kadmin.c (kadmin_getpol): Change format strings from %d to %ld
to match the policy types which are longs. * getdate.y: Include stdlib.h if present on system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12704 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/cli/getdate.y')
-rw-r--r--src/kadmin/cli/getdate.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y
index 321603f9f7..6de1f7e2a7 100644
--- a/src/kadmin/cli/getdate.y
+++ b/src/kadmin/cli/getdate.y
@@ -55,6 +55,10 @@ void *alloca ();
#include <stdio.h>
#include <ctype.h>
+#if defined(HAVE_STDLIB_H)
+#include <stdlib.h>
+#endif
+
/* The code at the top of get_date which figures out the offset of the
current time zone checks various CPP symbols to see if special
tricks are need, but defaults to using the gettimeofday system call.
@@ -118,7 +122,7 @@ extern struct tm *localtime();
static int yylex ();
static int yyerror ();
-#if !defined(lint) && !defined(SABER)
+#if !defined(lint) && !defined(SABER) && !defined(_LINT)
static char RCS[] =
"$Header$";
#endif /* !defined(lint) && !defined(SABER) */