diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-01-19 08:33:50 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-01-19 12:05:18 +0400 |
commit | 1e6c35c9155660d6fc4650dd4d4e5350118cf30c (patch) | |
tree | 1b6ce9bb229572e21bda75d4818238cf1fa14488 | |
parent | c0f21ce832c3bee9f67a11fb816f5e4bb449ce34 (diff) | |
download | libatomic_ops-1e6c35c9155660d6fc4650dd4d4e5350118cf30c.tar.gz |
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.
-rw-r--r-- | tests/test_atomic.c | 2 | ||||
-rw-r--r-- | tests/test_stack.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |