]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorAndreas Jaeger <aj@suse.de>
Tue, 5 Dec 2000 08:17:58 +0000 (08:17 +0000)
committerAndreas Jaeger <aj@suse.de>
Tue, 5 Dec 2000 08:17:58 +0000 (08:17 +0000)
2000-12-05  Andreas Jaeger  <aj@suse.de>

* nss/test-netdb.c: Mark local functions as static to avoid
warnings.
(main): Use return to silence warning.

* stdlib/test-canon.c (check_path): Mark as static to avoid warning.

* stdio-common/test-popen.c: Mark local functions as static to
avoid warnings.
(main): Use return to silence warning.

* stdlib/testsort.c (compare): Mark as static to avoid warning.

* assert/test-assert.c: Mark local functions as static to avoid
warnings.
* assert/test-assert-perr.c: Likewise.

* math/libm-test.inc (main): Use return to silence warnings.

ChangeLog
assert/test-assert-perr.c
assert/test-assert.c
math/libm-test.inc
stdio-common/test-popen.c
stdlib/test-canon.c
stdlib/testsort.c

index 9515f77a7cdb378a4fcdea5347fdfe64705d93b1..9a1b81c4aa898e09a5d487a6937fc04392af3373 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2000-12-05  Andreas Jaeger  <aj@suse.de>
+
+       * nss/test-netdb.c: Mark local functions as static to avoid
+       warnings.
+       (main): Use return to silence warning.
+
+       * stdlib/test-canon.c (check_path): Mark as static to avoid warning.
+
+       * stdio-common/test-popen.c: Mark local functions as static to
+       avoid warnings.
+       (main): Use return to silence warning.
+
+       * stdlib/testsort.c (compare): Mark as static to avoid warning.
+
+       * assert/test-assert.c: Mark local functions as static to avoid
+       warnings.
+       * assert/test-assert-perr.c: Likewise.
+
+       * math/libm-test.inc (main): Use return to silence warnings.
+
 2000-12-04  Ulrich Drepper  <drepper@redhat.com>
 
        * math/fenv.h: Fix typo in comment.
index 824c1a9f97de862e8988320ec88e9e45cbe3c6d8..8496db6ffd8e5c11a166b8bc7e757c127458193c 100644 (file)
@@ -14,7 +14,7 @@
 jmp_buf rec;
 char buf[160];
 
-void
+static void
 sigabrt (int unused)
 {
   longjmp (rec, 1);  /* recover control */
@@ -22,13 +22,13 @@ sigabrt (int unused)
 
 #undef NDEBUG
 #include <assert.h>
-void
+static void
 assert1 (void)
 {
   assert_perror (1);
 }
 
-void
+static void
 assert2 (void)
 {
   assert_perror (0);
@@ -36,7 +36,7 @@ assert2 (void)
 
 #define NDEBUG
 #include <assert.h>
-void
+static void
 assert3 (void)
 {
   assert_perror (2);
index 045721e9cd7562233e328ccf6832c840b804edd6..26b58d4dd3b4100229fd9706614d9d823886329a 100644 (file)
@@ -14,7 +14,7 @@
 jmp_buf rec;
 char buf[160];
 
-void
+static void
 sigabrt (int unused)
 {
   longjmp (rec, 1);  /* recover control */
@@ -22,13 +22,13 @@ sigabrt (int unused)
 
 #undef NDEBUG
 #include <assert.h>
-void
+static void
 assert1 (void)
 {
   assert (1 == 2);
 }
 
-void
+static void
 assert2 (void)
 {
   assert (1 == 1);
@@ -37,7 +37,7 @@ assert2 (void)
 
 #define NDEBUG
 #include <assert.h>
-void
+static void
 assert3 (void)
 {
   assert (2 == 3);
index 5ec089ccc01f120384a8c17a30dd64f5bb462f8c..e923795b902aa26036e6bacdd4b8eb148de5f405 100644 (file)
@@ -4401,10 +4401,11 @@ main (int argc, char **argv)
   if (noErrors)
     {
       printf ("  %d errors occured.\n", noErrors);
-      exit (1);
+      return 1;
     }
   printf ("  All tests passed successfully.\n");
-  exit (0);
+
+  return 0;
 }
 
 /*
index aced45d5c9a8465d6aa77cb5cb06054bb87eb255..5947e93a671002c263a378576a8223ee7805f502 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 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
@@ -20,7 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-void
+static void
 write_data (FILE *stream)
 {
   int i;
@@ -33,7 +33,7 @@ write_data (FILE *stream)
     }
 }
 
-void
+static void
 read_data (FILE *stream)
 {
   int i, j;
@@ -99,5 +99,5 @@ main (void)
     }
 
   puts (wstatus | rstatus  ? "Test FAILED!" : "Test succeeded.");
-  exit (wstatus | rstatus);
+  return (wstatus | rstatus);
 }
index 2ece136435898606a9ea63aa505e61e23d2f361f..596de7d488dbe5c2909cb2befe29c7ab70068ca3 100644 (file)
@@ -93,7 +93,7 @@ struct {
 };
 
 
-int
+static int
 check_path (const char * result, const char * expected)
 {
   int good;
index a9a43c76eac6ceaeab35e72c941205812dacdb9d..aa4332a5686f8f4813736f3ce858292105aa4f27 100644 (file)
@@ -2,7 +2,7 @@
 #include <string.h>
 #include <stdio.h>
 
-int
+static int
 compare (const void *a, const void *b)
 {
   return strcmp (*(char **) a, *(char **) b);