]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Correct the argument type in the sysctl_add_oid(9) prototype. On
authorkib <kib@FreeBSD.org>
Sat, 7 Nov 2015 12:33:30 +0000 (12:33 +0000)
committerkib <kib@FreeBSD.org>
Sat, 7 Nov 2015 12:33:30 +0000 (12:33 +0000)
ILP32 machines, intptr_t and intmax_t are different types.

Submitted by: skra

sys/sys/sysctl.h

index 950e7127bfc0768dc92c1d2769aa2578295cd750..f3e2d68239a1a912aa3858de9de1ad133846414f 100644 (file)
@@ -949,7 +949,7 @@ extern char kern_ident[];
 /* Dynamic oid handling */
 struct sysctl_oid *sysctl_add_oid(struct sysctl_ctx_list *clist,
            struct sysctl_oid_list *parent, int nbr, const char *name, int kind,
-           void *arg1, intptr_t arg2, int (*handler)(SYSCTL_HANDLER_ARGS),
+           void *arg1, intmax_t arg2, int (*handler)(SYSCTL_HANDLER_ARGS),
            const char *fmt, const char *descr);
 int    sysctl_remove_name(struct sysctl_oid *parent, const char *name, int del,
            int recurse);