+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.
jmp_buf rec;
char buf[160];
-void
+static void
sigabrt (int unused)
{
longjmp (rec, 1); /* recover control */
#undef NDEBUG
#include <assert.h>
-void
+static void
assert1 (void)
{
assert_perror (1);
}
-void
+static void
assert2 (void)
{
assert_perror (0);
#define NDEBUG
#include <assert.h>
-void
+static void
assert3 (void)
{
assert_perror (2);
jmp_buf rec;
char buf[160];
-void
+static void
sigabrt (int unused)
{
longjmp (rec, 1); /* recover control */
#undef NDEBUG
#include <assert.h>
-void
+static void
assert1 (void)
{
assert (1 == 2);
}
-void
+static void
assert2 (void)
{
assert (1 == 1);
#define NDEBUG
#include <assert.h>
-void
+static void
assert3 (void)
{
assert (2 == 3);
if (noErrors)
{
printf (" %d errors occured.\n", noErrors);
- exit (1);
+ return 1;
}
printf (" All tests passed successfully.\n");
- exit (0);
+
+ return 0;
}
/*
-/* 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
#include <stdio.h>
#include <stdlib.h>
-void
+static void
write_data (FILE *stream)
{
int i;
}
}
-void
+static void
read_data (FILE *stream)
{
int i, j;
}
puts (wstatus | rstatus ? "Test FAILED!" : "Test succeeded.");
- exit (wstatus | rstatus);
+ return (wstatus | rstatus);
}
};
-int
+static int
check_path (const char * result, const char * expected)
{
int good;
#include <string.h>
#include <stdio.h>
-int
+static int
compare (const void *a, const void *b)
{
return strcmp (*(char **) a, *(char **) b);