[PATCH]: type promotion prototypes fixes - NDIS

From: Roman Divacky <rdivacky_at_freebsd.org>
Date: Tue, 17 Feb 2009 09:25:52 +0100
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


Received on Tue Feb 17 2009 - 07:29:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC