[PATCH]: type promotion prototypes fixes - NDIS

Roman Divacky rdivacky at freebsd.org
Tue Feb 17 00:29:05 PST 2009


hi

can you please test/review this patch:

	 www.vlakno.cz/~rdivacky/int-promotion.patch

it fixes wrong type promotion prototypes in the cases
where there is a ANSI prototype and K&R function where
the default promotion to int is not satisfied.

ie.

void foo(uint16_t);

void
foo(x)
	uint16_t x;
{
   return;
}

the uint16_t x in the K&R function is promoted to int so the prototype
and function does not match.

most of the fixes in the patch does not change ABI but the NDIS does,
so please someone test this as I dont have the HW

thnx!

roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090217/9e1db82d/attachment.pgp


More information about the freebsd-current mailing list