From 8deaa5cb1bdad9c4505896866607f4272b307e9a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 31 Jul 2003 21:48:11 +0000 Subject: various cleanups; david says results are same --- regress/lib/libc/atexit/atexit_test.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'regress/lib/libc/atexit') 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 #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"); } -- cgit v1.2.3