From: millert Date: Mon, 28 Apr 1997 20:23:19 +0000 (+0000) Subject: Use strtoul() not strtol() when assigning to an unsigned long. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e8b19f44b6d8d56281f7ecf2a1bea25345772279;p=openbsd Use strtoul() not strtol() when assigning to an unsigned long. --- diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index b75bef86cbf..893b4f05ef0 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.2 1996/06/26 05:39:05 deraadt Exp $ */ +/* $OpenBSD: compile.c,v 1.3 1997/04/28 20:23:19 millert Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -39,7 +39,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.1 (Berkeley) 6/6/93"; */ -static char *rcsid = "$OpenBSD: compile.c,v 1.2 1996/06/26 05:39:05 deraadt Exp $"; +static char *rcsid = "$OpenBSD: compile.c,v 1.3 1997/04/28 20:23:19 millert Exp $"; #endif /* not lint */ #include @@ -676,7 +676,7 @@ compile_addr(p, a) case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': a->type = AT_LINE; - a->u.l = strtol(p, &end, 10); + a->u.l = strtoul(p, &end, 10); return (end); default: err(COMPILE, "expected context address");