logger.c:

- the syslog routines in libc should never have been changed to
	  take long parameters.  Restore the relevent code in this program
	  to the original types.
This commit is contained in:
gdr-ftp 1999-01-04 05:13:56 +00:00
parent 273780523c
commit 49196eea67

View File

@ -56,8 +56,8 @@ static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
#define SYSLOG_NAMES #define SYSLOG_NAMES
#include <syslog.h> #include <syslog.h>
long decode __P((char *, CODE *)); int decode __P((char *, CODE *));
long pencode __P((char *)); int pencode __P((char *));
void usage __P((void)); void usage __P((void));
/* /*
@ -69,8 +69,7 @@ void usage __P((void));
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
int ch, logflags; int ch, logflags, pri;
long pri;
char *tag; char *tag;
static char buf[1024]; static char buf[1024];
@ -147,11 +146,11 @@ main(int argc, char **argv)
/* /*
* Decode a symbolic name to a numeric value * Decode a symbolic name to a numeric value
*/ */
long int
pencode(register char *s) pencode(register char *s)
{ {
char *save; char *save;
long fac, lev; int fac, lev;
for (save = s; *s && *s != '.'; ++s); for (save = s; *s && *s != '.'; ++s);
if (*s) { if (*s) {
@ -177,7 +176,7 @@ pencode(register char *s)
return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK)); return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
} }
long int
decode(char *name, CODE *codetab) decode(char *name, CODE *codetab)
{ {
register CODE *c; register CODE *c;