aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /test-skeleton.c
parent2.5-18.1 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.bz2
glibc-a334319f6530564d22e775935d9c91663623a1b4.zip
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/test-skeleton.c b/test-skeleton.c
index 23e40124bd..9d9a68b62c 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -1,5 +1,5 @@
/* Skeleton for test programs.
- Copyright (C) 1998,2000-2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1998,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@@ -20,7 +20,6 @@
#include <errno.h>
#include <getopt.h>
-#include <malloc.h>
#include <search.h>
#include <signal.h>
#include <stdio.h>
@@ -152,9 +151,7 @@ timeout_handler (int sig __attribute__ ((unused)))
nanosleep() call return prematurely, all the better. We
won't restart it since this probably means the child process
finally died. */
- struct timespec ts;
- ts.tv_sec = 0;
- ts.tv_nsec = 100000000;
+ struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 };
nanosleep (&ts, NULL);
}
if (killed != 0 && killed != pid)
@@ -199,9 +196,6 @@ main (int argc, char *argv[])
unsigned int timeoutfactor = 1;
pid_t termpid;
- /* Make uses of freed and uninitialized memory known. */
- mallopt (M_PERTURB, 42);
-
#ifdef STDOUT_UNBUFFERED
setbuf (stdout, NULL);
#endif