diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-23 01:03:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-23 01:03:28 +0000 |
commit | 331926097f7dd22ef585d75c16bc5d992b991ee4 (patch) | |
tree | adcf9c57f15e0375cd07c9b7cd59fe018124dfea | |
parent | 35f166df44d1c9a083c25391996daf9a716261f5 (diff) | |
download | glibc-331926097f7dd22ef585d75c16bc5d992b991ee4.tar.gz glibc-331926097f7dd22ef585d75c16bc5d992b991ee4.tar.xz glibc-331926097f7dd22ef585d75c16bc5d992b991ee4.zip |
(timeout_handler): Rewrite ts initialization for C++.
-rw-r--r-- | test-skeleton.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test-skeleton.c b/test-skeleton.c index dd5d8041dd..23e40124bd 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) |