summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1994-08-14 04:51:05 +0000
committerMark Eichin <eichin@mit.edu>1994-08-14 04:51:05 +0000
commitc8f58e9c899613b360869acbee99a75761774aac (patch)
treea406d8ff6780dbe966ee9ed4bd7c96a15ddd89e9 /src
parent27b2488456641f56f746e52f43f58a0c8434a55b (diff)
downloadkrb5-c8f58e9c899613b360869acbee99a75761774aac.tar.gz
krb5-c8f58e9c899613b360869acbee99a75761774aac.tar.xz
krb5-c8f58e9c899613b360869acbee99a75761774aac.zip
unused vars
time.h use v4_time as a var, not time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4139 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/kdc/kdc_util.c1
-rw-r--r--src/kdc/kerberos_v4.c22
2 files changed, 9 insertions, 14 deletions
diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c
index 25b110a89..3c8d9fde2 100644
--- a/src/kdc/kdc_util.c
+++ b/src/kdc/kdc_util.c
@@ -1019,7 +1019,6 @@ char **status;
* Realm B is the "client realm"; this is what should be
* added to the transited field. (which is done elsewhere)
*/
- char *destination_realm;
/* Make sure there are two components... */
if (krb5_princ_size(ticket->server) != 2) {
diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c
index a51984eeb..757026b29 100644
--- a/src/kdc/kerberos_v4.c
+++ b/src/kdc/kerberos_v4.c
@@ -50,7 +50,11 @@ static char rcsid_kerberos_v4_c[] =
#include <sgtty.h>
#endif
#include <sys/ioctl.h>
+#ifdef USE_SYS_TIME_H
#include <sys/time.h>
+#else
+#include <time.h>
+#endif
#include <sys/file.h>
#include <ctype.h>
#include <syslog.h>
@@ -137,7 +141,6 @@ static long n_appl_req;
static long n_user;
static long n_server; */
-extern char *sys_errlist[];
/* static long max_age = -1; */
static long pause_int = -1;
@@ -583,10 +586,9 @@ kerb_get_principal(name, inst, principal, maxn, more)
unsigned int maxn; /* max number of name structs to return */
int *more; /* more tuples than room for */
{
- /* Note that neither of these structures should be passed to the
- krb5_free* functions, because the pointers within them point
+ /* Note that this structure should not be passed to the
+ krb5_free* functions, because the pointers within it point
to data with other references. */
- krb5_data search_stg[2];
krb5_principal search;
krb5_db_entry entries; /* filled in by krb5_db_get_principal() */
@@ -594,7 +596,7 @@ kerb_get_principal(name, inst, principal, maxn, more)
krb5_boolean more5; /* are there more? */
C_Block k;
short toggle = 0;
- int i, time;
+ int v4_time;
unsigned long *date;
char* text;
struct tm *tp;
@@ -658,8 +660,8 @@ kerb_get_principal(name, inst, principal, maxn, more)
/* convert v5's entries struct to v4's Principal struct:
* v5's time-unit for lifetimes is 1 sec, while v4 uses 5 minutes.
*/
- time = (entries.max_life + MIN5 - 1) / MIN5;
- principal->max_life = time > HR21 ? HR21 : (unsigned char) time;
+ v4_time = (entries.max_life + MIN5 - 1) / MIN5;
+ principal->max_life = v4_time > HR21 ? HR21 : (unsigned char) v4_time;
principal->exp_date = (unsigned long) entries.expiration;
principal->mod_date = (unsigned long) entries.mod_date;
principal->attributes = 0;
@@ -1100,12 +1102,6 @@ static void check_db_age()
* "25-Jan-88 10:17:56"
*/
-#ifdef USE_SYS_TIME_H
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-
static char *krb4_stime(t)
long *t;
{