From 519d2b2e9fb85751f46271545d20044a39c1f09d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Dec 2002 23:17:43 +0000 Subject: [PATCH] Convert GCC extension initializer syntax to C99. --- sysdeps/unix/sysv/aix/setitimer.c | 2 +- sysdeps/unix/sysv/aix/sleep.c | 2 +- sysdeps/unix/sysv/aix/usleep.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/sysv/aix/setitimer.c b/sysdeps/unix/sysv/aix/setitimer.c index e40a075fa9..d7e741abe7 100644 --- a/sysdeps/unix/sysv/aix/setitimer.c +++ b/sysdeps/unix/sysv/aix/setitimer.c @@ -56,7 +56,7 @@ __setitimer (which, new, old) case -1: exit(-1); case 0: { - struct timespec ts ={tv_sec:(long int)new->it_value.tv_sec,tv_nsec:0}; + struct timespec ts ={.tv_sec = (long int)new->it_value.tv_sec, .tv_nsec = 0}; __libc_nanosleep(&ts,&ts); __kill(getppid(), SIGALRM); exit(0); diff --git a/sysdeps/unix/sysv/aix/sleep.c b/sysdeps/unix/sysv/aix/sleep.c index 17a9702633..aa8d76d3d2 100644 --- a/sysdeps/unix/sysv/aix/sleep.c +++ b/sysdeps/unix/sysv/aix/sleep.c @@ -27,7 +27,7 @@ unsigned int __sleep (seconds) unsigned int seconds; { - struct timespec ts ={tv_sec:(long int)seconds,tv_nsec:0}; + struct timespec ts ={.tv_sec = (long int)seconds, .tv_nsec = 0}; __libc_nanosleep(&ts,&ts); return 0; } diff --git a/sysdeps/unix/sysv/aix/usleep.c b/sysdeps/unix/sysv/aix/usleep.c index e34fd0882d..a1d55eb2bc 100644 --- a/sysdeps/unix/sysv/aix/usleep.c +++ b/sysdeps/unix/sysv/aix/usleep.c @@ -28,7 +28,7 @@ int usleep (useconds) useconds_t useconds; { - struct timespec ts ={tv_sec:0,tv_nsec:(long int)useconds * 1000}; + struct timespec ts ={.tv_sec = 0, .tv_nsec = (long int)useconds * 1000}; __libc_nanosleep(&ts,&ts); return 0; }