From 663a0264d8fc0f6728b30ee48e12434ae19d08ec Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 14 Oct 2003 01:32:04 +0000 Subject: [PATCH] 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 --- util-vserver/lib/syscall-compat.hc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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