diff options
author | deraadt <> | 2003-07-31 21:48:04 +0000 |
---|---|---|
committer | deraadt <> | 2003-07-31 21:48:04 +0000 |
commit | 33c506bfed3ead4cc96819ce600895082c214755 (patch) | |
tree | f684ac5f268a986ffa67596e223c418beaac533a /src/regress/lib/libc/atexit | |
parent | 1e17357c09b2a156a0fa1407b68c4158394b9d7e (diff) | |
download | openbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.gz openbsd-33c506bfed3ead4cc96819ce600895082c214755.tar.bz2 openbsd-33c506bfed3ead4cc96819ce600895082c214755.zip |
various cleanups; david says results are same
Diffstat (limited to 'src/regress/lib/libc/atexit')
-rw-r--r-- | src/regress/lib/libc/atexit/atexit_test.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/regress/lib/libc/atexit/atexit_test.c b/src/regress/lib/libc/atexit/atexit_test.c index df316e3372..c30b9dff77 100644 --- a/src/regress/lib/libc/atexit/atexit_test.c +++ b/src/regress/lib/libc/atexit/atexit_test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: atexit_test.c,v 1.3 2002/10/21 20:40:50 mickey Exp $ */ | 1 | /* $OpenBSD: atexit_test.c,v 1.4 2003/07/31 21:48:02 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2002 Daniel Hartmeier | 4 | * Copyright (c) 2002 Daniel Hartmeier |
@@ -39,11 +39,11 @@ | |||
39 | #include <signal.h> | 39 | #include <signal.h> |
40 | #include "stdlib/atexit.h" | 40 | #include "stdlib/atexit.h" |
41 | 41 | ||
42 | void handle_first(); | 42 | void handle_first(void); |
43 | void handle_middle(); | 43 | void handle_middle(void); |
44 | void handle_last(); | 44 | void handle_last(void); |
45 | void handle_invalid(); | 45 | void handle_invalid(void); |
46 | void handle_cleanup(); | 46 | void handle_cleanup(void); |
47 | void handle_signal(int); | 47 | void handle_signal(int); |
48 | 48 | ||
49 | static int counter; | 49 | static int counter; |
@@ -96,31 +96,31 @@ main(int argc, char *argv[]) | |||
96 | } | 96 | } |
97 | 97 | ||
98 | void | 98 | void |
99 | handle_first() | 99 | handle_first(void) |
100 | { | 100 | { |
101 | fprintf(stderr, "handle_first() counter == %i\n", counter); | 101 | fprintf(stderr, "handle_first() counter == %i\n", counter); |
102 | } | 102 | } |
103 | 103 | ||
104 | void | 104 | void |
105 | handle_middle() | 105 | handle_middle(void) |
106 | { | 106 | { |
107 | counter++; | 107 | counter++; |
108 | } | 108 | } |
109 | 109 | ||
110 | void | 110 | void |
111 | handle_last() | 111 | handle_last(void) |
112 | { | 112 | { |
113 | fprintf(stderr, "handle_last() counter == %i\n", counter); | 113 | fprintf(stderr, "handle_last() counter == %i\n", counter); |
114 | } | 114 | } |
115 | 115 | ||
116 | void | 116 | void |
117 | handle_cleanup() | 117 | handle_cleanup(void) |
118 | { | 118 | { |
119 | fprintf(stderr, "handle_cleanup()\n"); | 119 | fprintf(stderr, "handle_cleanup()\n"); |
120 | } | 120 | } |
121 | 121 | ||
122 | void | 122 | void |
123 | handle_invalid() | 123 | handle_invalid(void) |
124 | { | 124 | { |
125 | fprintf(stderr, "handle_invalid() THIS SHOULD HAVE SEGFAULTED INSTEAD!\n"); | 125 | fprintf(stderr, "handle_invalid() THIS SHOULD HAVE SEGFAULTED INSTEAD!\n"); |
126 | } | 126 | } |