From c5a4650d6b8bc8ba701def6534ed98e5f88a5d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20G=C3=BCnther?= Date: Fri, 23 Oct 2009 08:54:52 +0000 Subject: [PATCH] Fixing the gcc4 build break. Using macro nonnull which actually resolves to an attribute doesn't work on inline functions. Thx to mmlr for helping out. Eitherway it should have worked in the first place, because the compiler has all the information it needs. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33745 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/compat/freebsd_network/compat/sys/systm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/compat/sys/systm.h b/src/libs/compat/freebsd_network/compat/sys/systm.h index 6ffe83a36e..79f1c337d5 100644 --- a/src/libs/compat/freebsd_network/compat/sys/systm.h +++ b/src/libs/compat/freebsd_network/compat/sys/systm.h @@ -55,14 +55,16 @@ void wakeup(void *); static inline int copyin(const void * __restrict udaddr, void * __restrict kaddr, - size_t len) __nonnull(1) __nonnull(2) { + size_t len) +{ return user_memcpy(kaddr, udaddr, len); } static inline int copyout(const void * __restrict kaddr, void * __restrict udaddr, - size_t len) __nonnull(1) __nonnull(2) { + size_t len) +{ return user_memcpy(udaddr, kaddr, len); }