summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/libc/ns_ttl.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libnetworking/libc/ns_ttl.c')
-rw-r--r--c/src/exec/libnetworking/libc/ns_ttl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/c/src/exec/libnetworking/libc/ns_ttl.c b/c/src/exec/libnetworking/libc/ns_ttl.c
index cca162b270..75093c1dbc 100644
--- a/c/src/exec/libnetworking/libc/ns_ttl.c
+++ b/c/src/exec/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;