From: Enrico Scholz Date: Tue, 14 Oct 2003 01:32:04 +0000 (+0000) Subject: made it compilable with non-C99 compilers X-Git-Tag: version_0_23_96~45 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663a0264d8fc0f6728b30ee48e12434ae19d08ec;p=util-vserver.git made it compilable with non-C99 compilers git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@129 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/syscall-compat.hc b/util-vserver/lib/syscall-compat.hc index 899932b..474157f 100644 --- a/util-vserver/lib/syscall-compat.hc +++ b/util-vserver/lib/syscall-compat.hc @@ -29,10 +29,9 @@ 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