]> granicus.if.org Git - libatomic_ops/commitdiff
Change function prototype specifications to follow strict ANSI C style
authorIvan Maidanski <ivmai@mail.ru>
Thu, 19 Jan 2012 04:33:50 +0000 (08:33 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 19 Jan 2012 08:05:18 +0000 (12:05 +0400)
* tests/test_atomic.c (main): Put "void" keyword into the arguments
specification of the function prototype.
* tests/test_stack.c (main): Likewise.

tests/test_atomic.c
tests/test_stack.c

index 7d59393da3c9d48d69e23524d4700a68836e7ab7..e35402470e7b3cbcd2a6f578c1af732753393335 100644 (file)
@@ -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();
index 3a92d12d800342ad08762476254ed9854c07a80c..bf3180d7f893c65ad1a2da046243cec4865e4389 100644 (file)
@@ -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;