summaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-03-23 07:57:34 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-03-23 07:57:34 +0000
commitaee9de629c086041d8d15a6e6201c744b617a842 (patch)
tree06dce9d70ea02a239651140a4a4976cdeb2445f9 /usr.bin/m4
parentf96f929c75082e316403156b5a260a2a5e276e86 (diff)
explicit cast on strtoul, classical const gotcha.
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/gnum4.c4
1 files changed, 2 insertions, 2 deletions
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]);
}