minor sign fixes pointed out by gcc -Wsign-compare

This commit is contained in:
Todd C. Miller
2002-11-22 19:11:47 +00:00
parent b152da4cdb
commit fd140ff5da
2 changed files with 18 additions and 17 deletions

View File

@@ -137,7 +137,7 @@ do_syslog(pri, msg)
int pri;
char *msg;
{
int count;
size_t count;
char *p;
char *tmp;
char save;
@@ -188,9 +188,10 @@ do_logfile(msg)
char *beg, *oldend, *end;
FILE *fp;
mode_t oldmask;
int maxlen = def_ival(I_LOGLINELEN);
size_t maxlen;
oldmask = umask(077);
maxlen = def_ival(I_LOGLINELEN) > 0 ? def_ival(I_LOGLINELEN) : 0;
fp = fopen(def_str(I_LOGFILE), "a");
(void) umask(oldmask);
if (fp == NULL) {