From 647b2510cda432e7e95698d5428139ae43fce6e4 Mon Sep 17 00:00:00 2001 From: jtc Date: Wed, 25 Aug 1993 22:22:30 +0000 Subject: [PATCH] Add cast to silence compiler warning. --- lib/libc/stdlib/strtol.c | 4 ++-- lib/libc/stdlib/strtoul.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/stdlib/strtol.c b/lib/libc/stdlib/strtol.c index e7df82de6c16..97af08364a23 100644 --- a/lib/libc/stdlib/strtol.c +++ b/lib/libc/stdlib/strtol.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char sccsid[] = "from: @(#)strtol.c 5.4 (Berkeley) 2/23/91";*/ -static char rcsid[] = "$Id: strtol.c,v 1.2 1993/08/01 18:36:55 mycroft Exp $"; +static char rcsid[] = "$Id: strtol.c,v 1.3 1993/08/25 22:22:30 jtc Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -125,6 +125,6 @@ strtol(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = any ? s - 1 : (char *)nptr; + *endptr = (char *) (any ? s - 1 : nptr); return (acc); } diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index 7358cd3fc314..fbce4add24a0 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char sccsid[] = "from: @(#)strtoul.c 5.3 (Berkeley) 2/23/91";*/ -static char rcsid[] = "$Id: strtoul.c,v 1.2 1993/08/01 18:36:54 mycroft Exp $"; +static char rcsid[] = "$Id: strtoul.c,v 1.3 1993/08/25 22:22:31 jtc Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -103,6 +103,6 @@ strtoul(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = any ? s - 1 : (char *)nptr; + *endptr = (char *) (any ? s - 1 : nptr); return (acc); }