svn commit: r193475 - head/sbin/kldload

Stanislav Sedov stas at FreeBSD.org
Fri Jun 5 06:23:34 UTC 2009


On Thu, 4 Jun 2009 23:43:08 +0000 (UTC)
Benno Rice <benno at FreeBSD.org> mentioned:

> +	if (path == NULL) {
> +		err(1, "allocating %lu bytes for the path",
> +		    (unsigned long)pathlen + 1);
                    ^^^^^^^^^^^^^^^^^^^^^^
Why convert pathlen to unsigned long here? The pathlen variable is
of size_t type which is already unsigned and we have the special 'z' prefix
in printf(3) to print those.

-- 
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20090605/e89c9888/attachment-0001.pgp


More information about the svn-src-all mailing list