aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)