diff options
author | dim <dim@FreeBSD.org> | 2011-12-30 17:18:09 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-30 17:18:09 +0000 |
commit | e28679ec14f723663e64f5b4cd256d9d28129d97 (patch) | |
tree | fedf076a04546599363a33a6799647e84ce8d094 | |
parent | 9495fdfa9a4e1132784bb9657d62e765c6472c92 (diff) | |
download | FreeBSD-src-e28679ec14f723663e64f5b4cd256d9d28129d97.zip FreeBSD-src-e28679ec14f723663e64f5b4cd256d9d28129d97.tar.gz |
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
-rw-r--r-- | sys/compat/ndis/subr_ntoskrnl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c index b57145c..863e35e 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); } |