aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-23 01:03:28 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-23 01:03:28 +0000
commit331926097f7dd22ef585d75c16bc5d992b991ee4 (patch)
treeadcf9c57f15e0375cd07c9b7cd59fe018124dfea
parent35f166df44d1c9a083c25391996daf9a716261f5 (diff)
downloadglibc-331926097f7dd22ef585d75c16bc5d992b991ee4.zip
glibc-331926097f7dd22ef585d75c16bc5d992b991ee4.tar.gz
glibc-331926097f7dd22ef585d75c16bc5d992b991ee4.tar.bz2
(timeout_handler): Rewrite ts initialization for C++.
-rw-r--r--test-skeleton.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test-skeleton.c b/test-skeleton.c
index dd5d804..23e4012 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -152,7 +152,9 @@ 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 = { .tv_sec = 0, .tv_nsec = 100000000 };
+ struct timespec ts;
+ ts.tv_sec = 0;
+ ts.tv_nsec = 100000000;
nanosleep (&ts, NULL);
}
if (killed != 0 && killed != pid)