uatomic: style fix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 31 Jan 2013 16:31:39 +0000 (11:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 31 Jan 2013 16:39:16 +0000 (11:39 -0500)
- Functions that don't take arguments should be "void" in C, otherwise
  those functions can take a variable number of arguments.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/uatomic/generic.h

index bfd9b68f3b14bac2617ede3e51f8285090b05d77..6c977689dd315bcb7a72d2e537d45a1af2a1fe97 100644 (file)
@@ -38,19 +38,19 @@ extern "C" {
 
 #if !defined __OPTIMIZE__  || defined UATOMIC_NO_LINK_ERROR
 static inline __attribute__((always_inline))
-void _uatomic_link_error()
+void _uatomic_link_error(void)
 {
 #ifdef ILLEGAL_INSTR
        /* generate an illegal instruction. Cannot catch this with linker tricks
         * when optimizations are disabled. */
        __asm__ __volatile__(ILLEGAL_INSTR);
 #else
-       __builtin_trap ();
+       __builtin_trap();
 #endif
 }
 
 #else /* #if !defined __OPTIMIZE__  || defined UATOMIC_NO_LINK_ERROR */
-extern void _uatomic_link_error ();
+extern void _uatomic_link_error(void);
 #endif /* #else #if !defined __OPTIMIZE__  || defined UATOMIC_NO_LINK_ERROR */
 
 /* cmpxchg */
This page took 0.025575 seconds and 4 git commands to generate.