Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/sys/kern/sigtramp fix prototypes.



details:   https://anonhg.NetBSD.org/src/rev/062f29409b03
branches:  trunk
changeset: 765038:062f29409b03
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 16 21:51:31 2011 +0000

description:
fix prototypes.

diffstat:

 regress/sys/kern/sigtramp/sigtramp.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r ac445dba83b0 -r 062f29409b03 regress/sys/kern/sigtramp/sigtramp.c
--- a/regress/sys/kern/sigtramp/sigtramp.c      Mon May 16 19:27:47 2011 +0000
+++ b/regress/sys/kern/sigtramp/sigtramp.c      Mon May 16 21:51:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigtramp.c,v 1.3 2008/04/28 20:23:07 martin Exp $      */
+/*     $NetBSD: sigtramp.c,v 1.4 2011/05/16 21:51:31 christos Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,14 +31,16 @@
  * I&D-caches after copying out the signal trampoline code.
  */
 #include <signal.h>
+#include <unistd.h>
 
-void catch(sig)
-int sig;
+static void
+catch(int sig)
 {
        return;
 }
 
-main()
+int
+main(void)
 {
        static struct sigaction sa;
 



Home | Main Index | Thread Index | Old Index