summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/atexit
diff options
context:
space:
mode:
authorderaadt <>2003-07-31 21:48:04 +0000
committerderaadt <>2003-07-31 21:48:04 +0000
commit33c506bfed3ead4cc96819ce600895082c214755 (patch)
treef684ac5f268a986ffa67596e223c418beaac533a /src/regress/lib/libc/atexit
parent1e17357c09b2a156a0fa1407b68c4158394b9d7e (diff)
downloadopenbsd-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.c22
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
42void handle_first(); 42void handle_first(void);
43void handle_middle(); 43void handle_middle(void);
44void handle_last(); 44void handle_last(void);
45void handle_invalid(); 45void handle_invalid(void);
46void handle_cleanup(); 46void handle_cleanup(void);
47void handle_signal(int); 47void handle_signal(int);
48 48
49static int counter; 49static int counter;
@@ -96,31 +96,31 @@ main(int argc, char *argv[])
96} 96}
97 97
98void 98void
99handle_first() 99handle_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
104void 104void
105handle_middle() 105handle_middle(void)
106{ 106{
107 counter++; 107 counter++;
108} 108}
109 109
110void 110void
111handle_last() 111handle_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
116void 116void
117handle_cleanup() 117handle_cleanup(void)
118{ 118{
119 fprintf(stderr, "handle_cleanup()\n"); 119 fprintf(stderr, "handle_cleanup()\n");
120} 120}
121 121
122void 122void
123handle_invalid() 123handle_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}