summaryrefslogtreecommitdiff
path: root/regress/lib/libc/atexit
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
commit8deaa5cb1bdad9c4505896866607f4272b307e9a (patch)
treef2b66a24b21f1edc23c12fdb15eab63814fc036d /regress/lib/libc/atexit
parent1472e2b5666bd9c64d37882b7cfb2596d9352eb3 (diff)
various cleanups; david says results are same
Diffstat (limited to 'regress/lib/libc/atexit')
-rw-r--r--regress/lib/libc/atexit/atexit_test.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/regress/lib/libc/atexit/atexit_test.c b/regress/lib/libc/atexit/atexit_test.c
index df316e33723..c30b9dff77a 100644
--- a/regress/lib/libc/atexit/atexit_test.c
+++ b/regress/lib/libc/atexit/atexit_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atexit_test.c,v 1.3 2002/10/21 20:40:50 mickey Exp $ */
+/* $OpenBSD: atexit_test.c,v 1.4 2003/07/31 21:48:02 deraadt Exp $ */
/*
* Copyright (c) 2002 Daniel Hartmeier
@@ -39,11 +39,11 @@
#include <signal.h>
#include "stdlib/atexit.h"
-void handle_first();
-void handle_middle();
-void handle_last();
-void handle_invalid();
-void handle_cleanup();
+void handle_first(void);
+void handle_middle(void);
+void handle_last(void);
+void handle_invalid(void);
+void handle_cleanup(void);
void handle_signal(int);
static int counter;
@@ -96,31 +96,31 @@ main(int argc, char *argv[])
}
void
-handle_first()
+handle_first(void)
{
fprintf(stderr, "handle_first() counter == %i\n", counter);
}
void
-handle_middle()
+handle_middle(void)
{
counter++;
}
void
-handle_last()
+handle_last(void)
{
fprintf(stderr, "handle_last() counter == %i\n", counter);
}
void
-handle_cleanup()
+handle_cleanup(void)
{
fprintf(stderr, "handle_cleanup()\n");
}
void
-handle_invalid()
+handle_invalid(void)
{
fprintf(stderr, "handle_invalid() THIS SHOULD HAVE SEGFAULTED INSTEAD!\n");
}