summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2006-03-23 07:57:33 +0000
committerespie <espie@openbsd.org>2006-03-23 07:57:33 +0000
commit858d930d32402621ef4cc21c4d538592774c8a30 (patch)
tree917a78a0367ccd4837d9a97dc4831aa25fbc1da5
parentback-out format for now, need to be active ONLY in GNU-m4 mode. (diff)
downloadwireguard-openbsd-858d930d32402621ef4cc21c4d538592774c8a30.tar.xz
wireguard-openbsd-858d930d32402621ef4cc21c4d538592774c8a30.zip
explicit cast on strtoul, classical const gotcha.
-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]);
}