X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fsyscall-compat.hc;h=1cbd166d28e76dec6bdcf24f5768e98a9cd93e2c;hb=a7ea10b82c037bc76ca2cb1fd0d0f8f80624cb4f;hp=6279d0af27aab18f94ee6646bc5484e029d8cb4e;hpb=47384090bc0e86ce964a9aea37553a4092a4d171;p=util-vserver.git diff --git a/util-vserver/lib/syscall-compat.hc b/util-vserver/lib/syscall-compat.hc index 6279d0a..1cbd166 100644 --- a/util-vserver/lib/syscall-compat.hc +++ b/util-vserver/lib/syscall-compat.hc @@ -26,14 +26,14 @@ #include -static inline ALWAYSINLINE int +static inline ALWAYSINLINE xid_t vc_new_s_context_compat(xid_t ctx, unsigned int remove_cap, unsigned int flags) { struct vcmd_new_s_context_v1 msg; msg.remove_cap = remove_cap; msg.flags = flags; - return vserver(VC_CMD(COMPAT, 1, 1), CTX_USER2KERNEL(ctx), &msg); + return vserver(VCMD_new_s_context, CTX_USER2KERNEL(ctx), &msg); } static inline ALWAYSINLINE int @@ -42,7 +42,7 @@ vc_set_ipv4root_compat(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const struct vcmd_set_ipv4root_v3 msg; size_t i; - if (nb>=NB_IPV4ROOT) { + if (nb>NB_IPV4ROOT) { errno = -EINVAL; return -1; } @@ -54,7 +54,7 @@ vc_set_ipv4root_compat(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const msg.ip_mask_pair[i].mask = ips[i].mask; } - return vserver(VC_CMD(COMPAT, 2, 3), nb, &msg); + return vserver(VCMD_set_ipv4root, nb, &msg); } static inline ALWAYSINLINE int