summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-22 06:01:11 +0000
committerphk <phk@FreeBSD.org>2003-07-22 06:01:11 +0000
commit7c79f39b21439553b2d4845e8f2807cb17b4e118 (patch)
treeeee498cfe8b39c704c7fdcacdc59e6cef792d6be
parent171794b4835a86a4c03f2f35618171c32e838fde (diff)
downloadFreeBSD-src-7c79f39b21439553b2d4845e8f2807cb17b4e118.zip
FreeBSD-src-7c79f39b21439553b2d4845e8f2807cb17b4e118.tar.gz
Remove __nonnull() on the second argument of strto[u]l() which I used
to test that the warning actually was emitted. Spotted by: scottl
-rw-r--r--sys/sys/systm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 040bfb7..e3e8dc4 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -164,8 +164,8 @@ int vsprintf(char *buf, const char *, __va_list) __printflike(2, 0);
int ttyprintf(struct tty *, const char *, ...) __printflike(2, 3);
int sscanf(const char *, char const *, ...) __nonnull(1) __nonnull(2);
int vsscanf(const char *, char const *, __va_list) __nonnull(1) __nonnull(2);
-long strtol(const char *, char **, int) __nonnull(1) __nonnull(2);
-u_long strtoul(const char *, char **, int) __nonnull(1) __nonnull(2);
+long strtol(const char *, char **, int) __nonnull(1);
+u_long strtoul(const char *, char **, int) __nonnull(1);
quad_t strtoq(const char *, char **, int) __nonnull(1);
u_quad_t strtouq(const char *, char **, int) __nonnull(1);
void tprintf(struct proc *p, int pri, const char *, ...) __printflike(3, 4);
OpenPOWER on IntegriCloud