From: Ivan Maidanski Date: Thu, 19 Jan 2012 04:33:50 +0000 (+0400) Subject: Change function prototype specifications to follow strict ANSI C style X-Git-Tag: libatomic_ops-7_2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e6c35c9155660d6fc4650dd4d4e5350118cf30c;p=libatomic_ops Change function prototype specifications to follow strict ANSI C style * tests/test_atomic.c (main): Put "void" keyword into the arguments specification of the function prototype. * tests/test_stack.c (main): Likewise. --- diff --git a/tests/test_atomic.c b/tests/test_atomic.c index 7d59393..e354024 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -165,7 +165,7 @@ int test_and_set_test(void) #endif /* defined(AO_HAVE_test_and_set_acquire) */ -int main() +int main(void) { test_atomic(); test_atomic_acquire(); diff --git a/tests/test_stack.c b/tests/test_stack.c index 3a92d12..bf3180d 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -74,7 +74,7 @@ void add_elements(int n) AO_stack_push(&the_list, (AO_t *)le); } -void print_list() +void print_list(void) { list_element *p;