From 84143cee4f63f81dd1e0148fa9ce7ff4ed903680 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 30 Dec 2011 17:18:09 +0000 Subject: [PATCH] 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 --- sys/compat/ndis/subr_ntoskrnl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index b57145c2b23..863e35e02f1 100644 --- a/sys/compat/ndis/subr_ntoskrnl.c +++ b/sys/compat/ndis/subr_ntoskrnl.c @@ -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); }