]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/sigaltstack.c
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / sigaltstack.c
index d9835465aada2f1220d0b24044532d3596fdb4a7..e75cb921f0dbf2360cc3846bbafd630473a2af9d 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright 2004-2021 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -68,10 +68,13 @@ catcher (int signal)
     case INNER:
       level = LEAF;
       return;
+    default:
+      abort ();
     }
 }
 
 
+int
 main ()
 {
   /* Set up the altstack.  */
@@ -90,4 +93,5 @@ main ()
   }
   level = MAIN;
   catcher (0);
+  return 0;
 }