aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/testprog.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/testprog.c')
-rw-r--r--binutils/testsuite/binutils-all/testprog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/testsuite/binutils-all/testprog.c b/binutils/testsuite/binutils-all/testprog.c
index c2b1856..57de461 100644
--- a/binutils/testsuite/binutils-all/testprog.c
+++ b/binutils/testsuite/binutils-all/testprog.c
@@ -1,6 +1,7 @@
/* This program is used to test objcopy and strip. */
#include <stdio.h>
+#include <string.h>
int common;
int global = 1;
@@ -22,9 +23,9 @@ main ()
|| strcmp (string, "string") != 0)
{
printf ("failed\n");
- exit (1);
+ return (1);
}
printf ("ok\n");
- exit (0);
+ return (0);
}