]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/atexit.c
Comment cleanups.
[pdclib] / functions / stdlib / atexit.c
index 0d61e32a818f39c9f6645f279bd6331ab5bfdb4a..a2c1598dd7b1371d97c85f7f2d0d9de17db2aea4 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* atexit( void (*)( void ) )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -24,7 +20,7 @@ int atexit( void (*func)( void ) )
     else
     {
         _PDCLIB_regstack[ --_PDCLIB_regptr ] = func;
-       return 0;
+        return 0;
     }
 }
 
@@ -36,14 +32,14 @@ int atexit( void (*func)( void ) )
 
 static int flags[ 32 ];
 
-static void counthandler()
+static void counthandler( void )
 {
-    static int rc = 0;
-    flags[ rc ] = rc;
-    ++rc;
+    static int count = 0;
+    flags[ count ] = count;
+    ++count;
 }
 
-static void checkhandler()
+static void checkhandler( void )
 {
     for ( int i = 0; i < 31; ++i )
     {
@@ -51,9 +47,8 @@ static void checkhandler()
     }
 }
 
-int main()
+int main( void )
 {
-    BEGIN_TESTS;
     TESTCASE( atexit( &checkhandler ) == 0 );
     for ( int i = 0; i < 31; ++i )
     {