aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/bug-strncat1.c2
-rw-r--r--string/bug-strpbrk1.c4
-rw-r--r--string/bug-strspn1.c4
-rw-r--r--string/test-ffs.c4
-rw-r--r--string/tst-inlcall.c6
-rw-r--r--string/tst-svc.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/string/bug-strncat1.c b/string/bug-strncat1.c
index 3491aa7d1f..f1b5c37c5c 100644
--- a/string/bug-strncat1.c
+++ b/string/bug-strncat1.c
@@ -27,5 +27,5 @@ main (void)
exit (1);
}
- exit (0);
+ return 0;
}
diff --git a/string/bug-strpbrk1.c b/string/bug-strpbrk1.c
index 3fdc930c3e..28238b0f50 100644
--- a/string/bug-strpbrk1.c
+++ b/string/bug-strpbrk1.c
@@ -13,7 +13,7 @@ main (void)
strpbrk (b++, "");
if (b != a + 1)
- exit (1);
+ return 1;
- exit (0);
+ return 0;
}
diff --git a/string/bug-strspn1.c b/string/bug-strspn1.c
index f637b97ef0..a657bafc43 100644
--- a/string/bug-strspn1.c
+++ b/string/bug-strspn1.c
@@ -13,7 +13,7 @@ main (void)
strspn (b++, "");
if (b != a + 1)
- exit (1);
+ return 1;
- exit (0);
+ return 0;
}
diff --git a/string/test-ffs.c b/string/test-ffs.c
index 8d46d4e076..9bc0796a1e 100644
--- a/string/test-ffs.c
+++ b/string/test-ffs.c
@@ -29,7 +29,7 @@ main (void)
int i;
auto void try (int value, int expected);
-
+
void try (int value, int expected)
{
if (ffs (value) != expected)
@@ -52,5 +52,5 @@ main (void)
else
puts ("Test succeeded.");
- exit (failures);
+ return failures;
}
diff --git a/string/tst-inlcall.c b/string/tst-inlcall.c
index 1e39ee4870..3557bff84f 100644
--- a/string/tst-inlcall.c
+++ b/string/tst-inlcall.c
@@ -1,5 +1,5 @@
/* Tester for calling inline string functions.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -40,7 +40,7 @@ main (void)
char buf1[1000];
char *cp;
char ch;
-
+
cp = strcpy (buf1, "hello world");
if (strcmp ("hello world", cp++) != 0)
{
@@ -72,5 +72,5 @@ main (void)
status = EXIT_FAILURE;
printf ("%d errors.\n", errors);
}
- exit (status);
+ return status;
}
diff --git a/string/tst-svc.c b/string/tst-svc.c
index 30a161e70a..1ee5342aa9 100644
--- a/string/tst-svc.c
+++ b/string/tst-svc.c
@@ -41,5 +41,5 @@ main (int argc, char *argv[])
for (i = 0; i < count; ++i)
puts (str[i]);
- exit (EXIT_SUCCESS);
+ return EXIT_SUCCESS;
}