Convert GCC extension initializer syntax to C99.
authorUlrich Drepper <drepper@redhat.com>
Mon, 16 Dec 2002 23:17:43 +0000 (23:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 16 Dec 2002 23:17:43 +0000 (23:17 +0000)
sysdeps/unix/sysv/aix/setitimer.c
sysdeps/unix/sysv/aix/sleep.c
sysdeps/unix/sysv/aix/usleep.c

index e40a075..d7e741a 100644 (file)
@@ -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);
index 17a9702..aa8d76d 100644 (file)
@@ -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;
 }
index e34fd08..a1d55eb 100644 (file)
@@ -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;
 }