aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/sleep.c2
-rw-r--r--sysdeps/unix/sysv/linux/sysctl.c12
-rw-r--r--sysdeps/unix/sysv/linux/usleep.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/sleep.c b/sysdeps/unix/sysv/linux/sleep.c
index b73032263b..0cf6be285d 100644
--- a/sysdeps/unix/sysv/linux/sleep.c
+++ b/sysdeps/unix/sysv/linux/sleep.c
@@ -29,7 +29,7 @@
unsigned int
__sleep (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 };
sigset_t set, oset;
unsigned int result;
diff --git a/sysdeps/unix/sysv/linux/sysctl.c b/sysdeps/unix/sysv/linux/sysctl.c
index c31eaaebcf..ee5b30a7b0 100644
--- a/sysdeps/unix/sysv/linux/sysctl.c
+++ b/sysdeps/unix/sysv/linux/sysctl.c
@@ -33,12 +33,12 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
/* GKM FIXME: force __sysctl_args decl to have unbounded pointers. */
struct __sysctl_args args =
{
- name: name,
- nlen: nlen,
- oldval: oldval,
- oldlenp: oldlenp,
- newval: newval,
- newlen: newlen
+ .name = name,
+ .nlen = nlen,
+ .oldval = oldval,
+ .oldlenp = oldlenp,
+ .newval = newval,
+ .newlen = newlen
};
(void) CHECK_N (name, nlen);
(void) CHECK_N (oldval, *oldlenp);
diff --git a/sysdeps/unix/sysv/linux/usleep.c b/sysdeps/unix/sysv/linux/usleep.c
index 1aae404098..643429eade 100644
--- a/sysdeps/unix/sysv/linux/usleep.c
+++ b/sysdeps/unix/sysv/linux/usleep.c
@@ -24,8 +24,8 @@
int
usleep (useconds_t useconds)
{
- struct timespec ts = { tv_sec: (long int) (useconds / 1000000),
- tv_nsec: (long int) (useconds % 1000000) * 1000ul };
+ struct timespec ts = { .tv_sec = (long int) (useconds / 1000000),
+ .tv_nsec = (long int) (useconds % 1000000) * 1000ul };
return __nanosleep (&ts, NULL);
}