diff options
Diffstat (limited to 'usr.sbin/xntpd/lib/atoint.c')
-rw-r--r-- | usr.sbin/xntpd/lib/atoint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/xntpd/lib/atoint.c b/usr.sbin/xntpd/lib/atoint.c index 0e8ea8f..33b5c5d 100644 --- a/usr.sbin/xntpd/lib/atoint.c +++ b/usr.sbin/xntpd/lib/atoint.c @@ -1,4 +1,4 @@ -/* atoint.c,v 3.1 1993/07/06 01:07:39 jbj Exp +/* * atoint - convert an ascii string to a signed long, with error checking */ #include <sys/types.h> @@ -9,9 +9,9 @@ int atoint(str, ival) const char *str; - LONG *ival; + long *ival; { - register U_LONG u; + register long u; register const char *cp; register int isneg; register int oflow_digit; @@ -41,8 +41,8 @@ atoint(str, ival) } if (isneg) - *ival = -((LONG)u); + *ival = -u; else - *ival = (LONG)u; + *ival = u; return 1; } |