From: Mathieu Desnoyers Date: Thu, 31 Jan 2013 16:31:39 +0000 (-0500) Subject: uatomic: style fix X-Git-Tag: v0.8.0~112 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=5c28497b02f74a982b0102009b0bcca5f41adbef uatomic: style fix - 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 --- diff --git a/urcu/uatomic/generic.h b/urcu/uatomic/generic.h index 54d2a8c..37f59cc 100644 --- a/urcu/uatomic/generic.h +++ b/urcu/uatomic/generic.h @@ -38,7 +38,7 @@ 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 /* @@ -47,12 +47,12 @@ void _uatomic_link_error() */ __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 */