summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libnetworking/libc/ns_ttl.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-20 21:47:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-20 21:47:37 +0000
commitff0f694d466fb114c185bf464811658f97d012f1 (patch)
tree1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /c/src/lib/libnetworking/libc/ns_ttl.c
parentchanged version to 980820-BSD (diff)
downloadrtems-ff0f694d466fb114c185bf464811658f97d012f1.tar.bz2
Fixed many warnings.
Diffstat (limited to 'c/src/lib/libnetworking/libc/ns_ttl.c')
-rw-r--r--c/src/lib/libnetworking/libc/ns_ttl.c8
1 files changed, 5 insertions, 3 deletions
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;