PERFORCE change 113105 for review
John Baldwin
jhb at freebsd.org
Thu Jan 18 14:37:17 UTC 2007
On Thursday 18 January 2007 05:40, Hans Petter Selasky wrote:
> http://perforce.freebsd.org/chv.cgi?CH=113105
>
> Change 113105 by hselasky at hselasky_mini_itx on 2007/01/18 10:40:02
>
> Use unsigned type for counting the number of devices.
uint32_t should be used when you really need a 32-bit type. For simple counting
you should use either 'int' or 'u_int'.
> Affected files ...
>
> .. //depot/projects/usb/src/sys/kern/subr_bus.c#5 edit
>
> Differences ...
>
> ==== //depot/projects/usb/src/sys/kern/subr_bus.c#5 (text+ko) ====
>
> @@ -1848,8 +1848,8 @@
> int
> device_get_children(device_t dev, device_t **devlistp, int *devcountp)
> {
> - int count;
> - int n;
> + uint32_t count;
> + uint32_t n;
> device_t child;
> device_t *list;
>
>
--
John Baldwin
More information about the p4-projects
mailing list