From ff0f694d466fb114c185bf464811658f97d012f1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 20 Aug 1998 21:47:37 +0000 Subject: Fixed many warnings. --- c/src/lib/libnetworking/libc/ns_ttl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libnetworking/libc/ns_ttl.c') diff --git a/c/src/lib/libnetworking/libc/ns_ttl.c b/c/src/lib/libnetworking/libc/ns_ttl.c index cca162b270..75093c1dbc 100644 --- a/c/src/lib/libnetworking/libc/ns_ttl.c +++ b/c/src/lib/libnetworking/libc/ns_ttl.c @@ -15,9 +15,11 @@ * SOFTWARE. */ -#ifndef lint +#if !defined(__rtems__) +#if !defined(LINT) && !defined(CODECENTER) static char rcsid[] = "$Id$"; -#endif +#endif /* not lint */ +#endif /* not rtems */ /* Import. */ @@ -44,7 +46,7 @@ int ns_format_ttl(u_long src, char *dst, size_t dstlen) { char *odst = dst; int secs, mins, hours, days, weeks, x; - char tmp[50], *p; + char *p; secs = src % 60; src /= 60; mins = src % 60; src /= 60; -- cgit v1.2.3