summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c48
-rw-r--r--nscd/grpcache.c32
-rw-r--r--nscd/hstcache.c40
-rw-r--r--nscd/pwdcache.c44
4 files changed, 82 insertions, 82 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index 58e05018d3..3abbdc2ff1 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -90,34 +90,34 @@ const char *serv2str[LASTREQ] =
 static struct database dbs[lastdb] =
 {
   [pwddb] = {
-    lock: PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
-    enabled: 0,
-    check_file: 1,
-    filename: "/etc/passwd",
-    module: 211,
-    disabled_iov: &pwd_iov_disabled,
-    postimeout: 3600,
-    negtimeout: 20
+    .lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
+    .enabled = 0,
+    .check_file = 1,
+    .filename = "/etc/passwd",
+    .module = 211,
+    .disabled_iov = &pwd_iov_disabled,
+    .postimeout = 3600,
+    .negtimeout = 20
   },
   [grpdb] = {
-    lock: PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
-    enabled: 0,
-    check_file: 1,
-    filename: "/etc/group",
-    module: 211,
-    disabled_iov: &grp_iov_disabled,
-    postimeout: 3600,
-    negtimeout: 60
+    .lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
+    .enabled = 0,
+    .check_file = 1,
+    .filename = "/etc/group",
+    .module = 211,
+    .disabled_iov = &grp_iov_disabled,
+    .postimeout = 3600,
+    .negtimeout = 60
   },
   [hstdb] = {
-    lock: PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
-    enabled: 0,
-    check_file: 1,
-    filename: "/etc/hosts",
-    module: 211,
-    disabled_iov: &hst_iov_disabled,
-    postimeout: 3600,
-    negtimeout: 20
+    .lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
+    .enabled = 0,
+    .check_file = 1,
+    .filename = "/etc/hosts",
+    .module = 211,
+    .disabled_iov = &hst_iov_disabled,
+    .postimeout = 3600,
+    .negtimeout = 20
   }
 };
 
diff --git a/nscd/grpcache.c b/nscd/grpcache.c
index ce84668900..41a36dc674 100644
--- a/nscd/grpcache.c
+++ b/nscd/grpcache.c
@@ -37,38 +37,38 @@
 /* This is the standard reply in case the service is disabled.  */
 static const gr_response_header disabled =
 {
-  version: NSCD_VERSION,
-  found: -1,
-  gr_name_len: 0,
-  gr_passwd_len: 0,
-  gr_gid: -1,
-  gr_mem_cnt: 0,
+  .version = NSCD_VERSION,
+  .found = -1,
+  .gr_name_len = 0,
+  .gr_passwd_len = 0,
+  .gr_gid = -1,
+  .gr_mem_cnt = 0,
 };
 
 /* This is the struct describing how to write this record.  */
 const struct iovec grp_iov_disabled =
 {
-  iov_base: (void *) &disabled,
-  iov_len: sizeof (disabled)
+  .iov_base = (void *) &disabled,
+  .iov_len = sizeof (disabled)
 };
 
 
 /* This is the standard reply in case we haven't found the dataset.  */
 static const gr_response_header notfound =
 {
-  version: NSCD_VERSION,
-  found: 0,
-  gr_name_len: 0,
-  gr_passwd_len: 0,
-  gr_gid: -1,
-  gr_mem_cnt: 0,
+  .version = NSCD_VERSION,
+  .found = 0,
+  .gr_name_len = 0,
+  .gr_passwd_len = 0,
+  .gr_gid = -1,
+  .gr_mem_cnt = 0,
 };
 
 /* This is the struct describing how to write this record.  */
 static const struct iovec iov_notfound =
 {
-  iov_base: (void *) &notfound,
-  iov_len: sizeof (notfound)
+  .iov_base = (void *) &notfound,
+  .iov_len = sizeof (notfound)
 };
 
 
diff --git a/nscd/hstcache.c b/nscd/hstcache.c
index dd8fc59f61..67f4e50f97 100644
--- a/nscd/hstcache.c
+++ b/nscd/hstcache.c
@@ -41,42 +41,42 @@
 /* This is the standard reply in case the service is disabled.  */
 static const hst_response_header disabled =
 {
-  version: NSCD_VERSION,
-  found: -1,
-  h_name_len: 0,
-  h_aliases_cnt: 0,
-  h_addrtype: -1,
-  h_length: -1,
-  h_addr_list_cnt: 0,
-  error: NETDB_INTERNAL
+  .version = NSCD_VERSION,
+  .found = -1,
+  .h_name_len = 0,
+  .h_aliases_cnt = 0,
+  .h_addrtype = -1,
+  .h_length = -1,
+  .h_addr_list_cnt = 0,
+  .error = NETDB_INTERNAL
 };
 
 /* This is the struct describing how to write this record.  */
 const struct iovec hst_iov_disabled =
 {
-  iov_base: (void *) &disabled,
-  iov_len: sizeof (disabled)
+  .iov_base = (void *) &disabled,
+  .iov_len = sizeof (disabled)
 };
 
 
 /* This is the standard reply in case we haven't found the dataset.  */
 static const hst_response_header notfound =
 {
-  version: NSCD_VERSION,
-  found: 0,
-  h_name_len: 0,
-  h_aliases_cnt: 0,
-  h_addrtype: -1,
-  h_length: -1,
-  h_addr_list_cnt: 0,
-  error: HOST_NOT_FOUND
+  .version = NSCD_VERSION,
+  .found = 0,
+  .h_name_len = 0,
+  .h_aliases_cnt = 0,
+  .h_addrtype = -1,
+  .h_length = -1,
+  .h_addr_list_cnt = 0,
+  .error = HOST_NOT_FOUND
 };
 
 /* This is the struct describing how to write this record.  */
 static const struct iovec iov_notfound =
 {
-  iov_base: (void *) &notfound,
-  iov_len: sizeof (notfound)
+  .iov_base = (void *) &notfound,
+  .iov_len = sizeof (notfound)
 };
 
 
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 9d88c88a37..a52c7e3355 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -37,44 +37,44 @@
 /* This is the standard reply in case the service is disabled.  */
 static const pw_response_header disabled =
 {
-  version: NSCD_VERSION,
-  found: -1,
-  pw_name_len: 0,
-  pw_passwd_len: 0,
-  pw_uid: -1,
-  pw_gid: -1,
-  pw_gecos_len: 0,
-  pw_dir_len: 0,
-  pw_shell_len: 0
+  .version = NSCD_VERSION,
+  .found = -1,
+  .pw_name_len = 0,
+  .pw_passwd_len = 0,
+  .pw_uid = -1,
+  .pw_gid = -1,
+  .pw_gecos_len = 0,
+  .pw_dir_len = 0,
+  .pw_shell_len = 0
 };
 
 /* This is the struct describing how to write this record.  */
 const struct iovec pwd_iov_disabled =
 {
-  iov_base: (void *) &disabled,
-  iov_len: sizeof (disabled)
+  .iov_base = (void *) &disabled,
+  .iov_len = sizeof (disabled)
 };
 
 
 /* This is the standard reply in case we haven't found the dataset.  */
 static const pw_response_header notfound =
 {
-  version: NSCD_VERSION,
-  found: 0,
-  pw_name_len: 0,
-  pw_passwd_len: 0,
-  pw_uid: -1,
-  pw_gid: -1,
-  pw_gecos_len: 0,
-  pw_dir_len: 0,
-  pw_shell_len: 0
+  .version = NSCD_VERSION,
+  .found = 0,
+  .pw_name_len = 0,
+  .pw_passwd_len = 0,
+  .pw_uid = -1,
+  .pw_gid = -1,
+  .pw_gecos_len = 0,
+  .pw_dir_len = 0,
+  .pw_shell_len = 0
 };
 
 /* This is the struct describing how to write this record.  */
 static const struct iovec iov_notfound =
 {
-  iov_base: (void *) &notfound,
-  iov_len: sizeof (notfound)
+  .iov_base = (void *) &notfound,
+  .iov_len = sizeof (notfound)
 };