diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-29 23:04:24 +0000 |
commit | 96f7e86b724c797f2b44beaaf956cf14550e57df (patch) | |
tree | 65fc9d6eb6e84f9e629426ab09186ab1373f9bcb /usr.sbin/xntpd/lib/authreadkeys.c | |
parent | 1185c9048d38483a3f99f3065590713d8bcda610 (diff) | |
download | FreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.zip FreeBSD-src-96f7e86b724c797f2b44beaaf956cf14550e57df.tar.gz |
xntp 3.4e from Dave Mills @ UDel
Diffstat (limited to 'usr.sbin/xntpd/lib/authreadkeys.c')
-rw-r--r-- | usr.sbin/xntpd/lib/authreadkeys.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/xntpd/lib/authreadkeys.c b/usr.sbin/xntpd/lib/authreadkeys.c index 5800186..8d2697f 100644 --- a/usr.sbin/xntpd/lib/authreadkeys.c +++ b/usr.sbin/xntpd/lib/authreadkeys.c @@ -1,4 +1,4 @@ -/* authreadkeys.c,v 3.1 1993/07/06 01:07:57 jbj Exp +/* * authreadkeys.c - routines to support the reading of the key file */ #include <stdio.h> @@ -80,7 +80,7 @@ authreadkeys(file) FILE *fp; char *line; char *token; - U_LONG keyno; + u_long keyno; int keytype; char buf[512]; /* lots of room for line? */ extern FILE * fopen P((const char *filename, const char *type)); @@ -111,7 +111,7 @@ extern int fclose P((FILE *stream)); /* * First is key number. See if it is okay. */ - keyno = (U_LONG)atoi(token); + keyno = atoi(token); if (keyno == 0) { syslog(LOG_ERR, "cannot change keyid 0, key entry `%s' ignored", @@ -125,7 +125,7 @@ extern int fclose P((FILE *stream)); token = nexttok(&line); if (token == 0) { syslog(LOG_ERR, - "no key type for key number %d, entry ignored", + "no key type for key number %ld, entry ignored", keyno); continue; } @@ -150,7 +150,7 @@ extern int fclose P((FILE *stream)); #endif default: syslog(LOG_ERR, - "invalid key type for key number %d, entry ignored", + "invalid key type for key number %ld, entry ignored", keyno); continue; } @@ -161,7 +161,7 @@ extern int fclose P((FILE *stream)); token = nexttok(&line); if (token == 0) { syslog(LOG_ERR, - "no key for number %d entry, entry ignored", + "no key for number %ld entry, entry ignored", keyno); } else { switch(keytype) { @@ -171,7 +171,7 @@ extern int fclose P((FILE *stream)); case KEY_TYPE_ASCII: if (!authusekey(keyno, keytype, token)) syslog(LOG_ERR, - "format/parity error for DES key %d, not used", + "format/parity error for DES key %ld, not used", keyno); break; #endif @@ -179,7 +179,7 @@ extern int fclose P((FILE *stream)); case KEY_TYPE_MD5: if (!authusekey(keyno, keytype, token)) syslog(LOG_ERR, - "format/parity error for MD5 key %d, not used", + "format/parity error for MD5 key %ld, not used", keyno); break; #endif |