From 5615eaf26469f20c2d8c3be5770e12564a1edfff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 10 Jun 2011 12:45:09 -0700 Subject: Quash some new warnings from GCC 4.6. --- misc/syslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/syslog.c b/misc/syslog.c index 90cd3bf..7156b4f 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -141,7 +141,7 @@ __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap) FILE *f; char *buf = 0; size_t bufsize = 0; - size_t prioff, msgoff; + size_t msgoff; #ifndef NO_SIGPIPE struct sigaction action, oldaction; int sigpipe; @@ -192,7 +192,7 @@ __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap) else { __fsetlocking (f, FSETLOCKING_BYCALLER); - prioff = fprintf (f, "<%d>", pri); + fprintf (f, "<%d>", pri); (void) time (&now); f->_IO_write_ptr += __strftime_l (f->_IO_write_ptr, f->_IO_write_end -- cgit v1.1