[haiku-commits] r33745 - haiku/trunk/src/libs/compat/freebsd_network/compat/sys

  • From: coling@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 23 Oct 2009 10:54:53 +0200 (CEST)

Author: colin
Date: 2009-10-23 10:54:52 +0200 (Fri, 23 Oct 2009)
New Revision: 33745
Changeset: http://dev.haiku-os.org/changeset/33745/haiku

Modified:
   haiku/trunk/src/libs/compat/freebsd_network/compat/sys/systm.h
Log:
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.

Modified: haiku/trunk/src/libs/compat/freebsd_network/compat/sys/systm.h
===================================================================
--- haiku/trunk/src/libs/compat/freebsd_network/compat/sys/systm.h      
2009-10-23 08:07:56 UTC (rev 33744)
+++ haiku/trunk/src/libs/compat/freebsd_network/compat/sys/systm.h      
2009-10-23 08:54:52 UTC (rev 33745)
@@ -55,14 +55,16 @@
 
 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);
 }
 


Other related posts:

  • » [haiku-commits] r33745 - haiku/trunk/src/libs/compat/freebsd_network/compat/sys - coling