From aee9de629c086041d8d15a6e6201c744b617a842 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Thu, 23 Mar 2006 07:57:34 +0000 Subject: explicit cast on strtoul, classical const gotcha. --- usr.bin/m4/gnum4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index 973df3b030c..f6c898ca843 100644 --- a/usr.bin/m4/gnum4.c +++ b/usr.bin/m4/gnum4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gnum4.c,v 1.33 2006/03/20 20:27:45 espie Exp $ */ +/* $OpenBSD: gnum4.c,v 1.34 2006/03/23 07:57:33 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie @@ -525,7 +525,7 @@ doformat(const char *argv[], int argc) left_padded = 1; format++; } - width = strtoul(format, &format, 10); + width = strtoul(format, (char **)&format, 10); if (*format != 's') { m4errx(1, "Unsupported format specification: %s.", argv[2]); } -- cgit v1.2.3