]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 17 Dec 2002 00:06:01 +0000 (00:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 17 Dec 2002 00:06:01 +0000 (00:06 +0000)
2002-12-16  Art Haas  <ahaas@airmail.net>

* io/ftw.c: Convert GCC extension initializer syntax to C99.

ChangeLog
io/ftw.c
sysdeps/generic/bp-semctl.h
sysdeps/unix/sysv/aix/setitimer.c
sysdeps/unix/sysv/aix/sleep.c
sysdeps/unix/sysv/aix/usleep.c

index dce430be98c89d62d110d6b26e3030b87ba32c9b..6109d82e70dd3efe3a0500462dfc4e143562f1d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-16  Art Haas  <ahaas@airmail.net>
+
+       * io/ftw.c: Convert GCC extension initializer syntax to C99.
+
 2002-12-16  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
index 0b4565fedf317eebbe6f96cb4f851abcd651e360..0ff5947ee440235e226e566b93eb99b765fcc645 100644 (file)
--- a/io/ftw.c
+++ b/io/ftw.c
@@ -1,5 +1,5 @@
 /* File tree walker functions.
-   Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -138,7 +138,7 @@ add_object (struct ftw_data *data, struct STAT *st)
 static inline int
 find_object (struct ftw_data *data, struct STAT *st)
 {
-  struct known_object obj = { dev: st->st_dev, ino: st->st_ino };
+  struct known_object obj = { .dev = st->st_dev, .ino = st->st_ino };
   return __tfind (&obj, &data->known_objects, object_compare) != NULL;
 }
 
index 39f210ef511e1475bd0b13cf50707f6f0dfadfe5..d33ed2b356118a038900c5b074c1b288560a5e40 100644 (file)
@@ -41,7 +41,7 @@ check_semctl (union semun *arg, int semid, int cmd)
     case SETALL:
       {
        struct semid_ds ds;
-       union semun un = { buf: &ds };
+       union semun un = { .buf = &ds };
        unsigned int length = ~0;
 
        /* It's unfortunate that we need to make a recursive
index e40a075fa93109eb1ba060ed9d5b086a039d9ff7..d7e741abe7f66a0f45cdef2ac0e22330921c0a07 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 17a9702633894ee0e79c5934edeb074a595179e0..aa8d76d3d2cd89838b7a250536766267d7fe36d8 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 e34fd0882d92b7cc6db3ad25f88d1f8232bc073b..a1d55eb2bcf8bd97d096d8faa1d6b55272fdc2ca 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;
 }