summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/return.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/return.c')
-rw-r--r--gdb/testsuite/gdb.base/return.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/return.c b/gdb/testsuite/gdb.base/return.c
index e19d1a0b1f2..d11a4b57e09 100644
--- a/gdb/testsuite/gdb.base/return.c
+++ b/gdb/testsuite/gdb.base/return.c
@@ -1,7 +1,7 @@
#include <stdio.h>
/* Test "return" command. */
-func1 ()
+void func1 ()
{
printf("in func1\n");
}
@@ -21,7 +21,7 @@ func3 ()
int tmp2;
double tmp3;
-main ()
+int main ()
{
#ifdef usestubs
set_debug_traps();
@@ -32,4 +32,5 @@ main ()
tmp2 = func2 ();
tmp3 = func3 ();
printf("exiting\n");
+ return 0;
}