svn commit: r211265 - in projects/ofed/head/sys: dev/hptmv kern
sys
Bruce Evans
brde at optusnet.com.au
Fri Aug 13 15:25:37 UTC 2010
On Fri, 13 Aug 2010, Jeff Roberson wrote:
> Log:
> - Change sysctl arg2 to a intptr_t preserving the sign and expanding the
> size so it can optionally hold a pointer.
> Modified: projects/ofed/head/sys/kern/kern_jail.c
> ==============================================================================
> --- projects/ofed/head/sys/kern/kern_jail.c Fri Aug 13 03:14:08 2010 (r211264)
> +++ projects/ofed/head/sys/kern/kern_jail.c Fri Aug 13 03:15:02 2010 (r211265)
> @@ -4166,7 +4166,7 @@ sysctl_jail_param(SYSCTL_HANDLER_ARGS)
> i = 0;
> return (SYSCTL_OUT(req, &i, sizeof(i)));
> case CTLTYPE_STRING:
> - snprintf(numbuf, sizeof(numbuf), "%d", arg2);
> + snprintf(numbuf, sizeof(numbuf), "%jd", arg2);
> return
> (sysctl_handle_string(oidp, numbuf, sizeof(numbuf), req));
> case CTLTYPE_STRUCT:
>
intptr_t is logically different from intmax_t, and is physically different
on all 32-bit arches.
Bruce
More information about the svn-src-projects
mailing list