svn commit: r229004 - head/sys/compat/ndis

Dimitry Andric dim at FreeBSD.org
Fri Dec 30 17:18:10 UTC 2011


Author: dim
Date: Fri Dec 30 17:18:09 2011
New Revision: 229004
URL: http://svn.freebsd.org/changeset/base/229004

Log:
  In sys/compat/ndis/subr_ntoskrnl.c, change the RtlFillMemory function
  definition from K&R to ANSI, to avoid a clang warning about the uint8_t
  parameter being promoted to int, which is not compatible with the type
  declared in the earlier prototype.
  
  MFC after:	1 week

Modified:
  head/sys/compat/ndis/subr_ntoskrnl.c

Modified: head/sys/compat/ndis/subr_ntoskrnl.c
==============================================================================
--- head/sys/compat/ndis/subr_ntoskrnl.c	Fri Dec 30 15:41:28 2011	(r229003)
+++ head/sys/compat/ndis/subr_ntoskrnl.c	Fri Dec 30 17:18:09 2011	(r229004)
@@ -3016,10 +3016,7 @@ RtlSecureZeroMemory(dst, len)
 }
 
 static void
-RtlFillMemory(dst, len, c)
-	void			*dst;
-	size_t			len;
-	uint8_t			c;
+RtlFillMemory(void *dst, size_t len, uint8_t c)
 {
 	memset(dst, c, len);
 }


More information about the svn-src-all mailing list