Convert GCC extension initializer syntax to C99.

This commit is contained in:
Ulrich Drepper 2002-12-16 23:17:43 +00:00
parent 5a9c848490
commit 519d2b2e9f
3 changed files with 3 additions and 3 deletions

View 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);

View 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;
}

View 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;
}