[patch] fix K&R int promotion warnings in sys/compat/ndis/subr_usbd.c
- From: Pawel Worach <pawel.worach@xxxxxxxxx>
- Date: Sun, 21 Jun 2009 23:53:01 +0200
Hi,
Here is a patch to fix the K&R function declaration to match the ANSI
prototypes, done so by ANSIfying the rest of the K&R function
declarations in the file.
http://lev.vlakno.cz/~pwo/warn-fix/ndis-subr_usbd.diff
Sample warning:
/usr/src/sys/modules/ndis/../../compat/ndis/subr_usbd.c:598:13:
warning: promoted type 'int' of K&R function parameter is not
compatible with the parameter type 'uint8_t' (aka 'unsigned char')
declared in a previous prototype
uint8_t ifidx;
^
/usr/src/sys/modules/ndis/../../compat/ndis/subr_usbd.c:120:59: note:
previous declaration is here
static usb_error_t usbd_setup_endpoint_one(irp *, uint8_t,
^
--
Pawel
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Prev by Date: [patch] trivial warning fix for ndis_events
- Next by Date: Re: hang in rpccon from interrupting NFS operations (Re: pointyhat panic)
- Previous by thread: [patch] trivial warning fix for ndis_events
- Next by thread: Fix bin/102299 (has patch in PR)?
- Index(es):
Relevant Pages
|