made it compilable with non-C99 compilers
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 14 Oct 2003 01:32:04 +0000 (01:32 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 14 Oct 2003 01:32:04 +0000 (01:32 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@129 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/syscall-compat.hc

index 899932b..474157f 100644 (file)
 static inline ALWAYSINLINE int
 vc_new_s_context_compat(ctx_t ctx, unsigned int remove_cap, unsigned int flags)
 {
-  struct vcmd_new_s_context_v1 msg = {
-    .remove_cap = remove_cap,
-    .flags      = flags
-  };
+  struct vcmd_new_s_context_v1 msg;
+  msg.remove_cap = remove_cap;
+  msg.flags      = flags;
 
   return sys_virtual_context(VC_CMD(COMPAT, 1, 1), ctx, &msg);
 }
@@ -40,9 +39,7 @@ vc_new_s_context_compat(ctx_t ctx, unsigned int remove_cap, unsigned int flags)
 static inline ALWAYSINLINE int
 vc_set_ipv4root_compat(uint32_t  bcast, size_t nb, struct vc_ip_mask_pair const *ips)
 {
-  struct vcmd_set_ipv4root_v3  msg = {
-    .broadcast  = bcast
-  };
+  struct vcmd_set_ipv4root_v3  msg;
   size_t                       i;
 
   if (nb>=NB_IPV4ROOT) {
@@ -50,6 +47,8 @@ vc_set_ipv4root_compat(uint32_t  bcast, size_t nb, struct vc_ip_mask_pair const
     return -1;
   }
 
+  msg.broadcast = bcast;
+
   for (i=0; i<nb; ++i) {
     msg.ip_mask_pair[i].ip   = ips[i].ip;
     msg.ip_mask_pair[i].mask = ips[i].mask;