X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fsyscall-compat.hc;h=b3838cea59533db5460865771281ac79d123acda;hb=96448e268dbe81573fd4afc6fccbdd63f0bc6580;hp=3620ebc055c3c9dce5c54481061210d9b3a14fe0;hpb=67d67f83ff23702d8712a3f88a4af86e7900a193;p=util-vserver.git diff --git a/util-vserver/lib/syscall-compat.hc b/util-vserver/lib/syscall-compat.hc index 3620ebc..b3838ce 100644 --- a/util-vserver/lib/syscall-compat.hc +++ b/util-vserver/lib/syscall-compat.hc @@ -26,7 +26,7 @@ #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; @@ -42,8 +42,8 @@ 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) { - errno = -EINVAL; + if (nb>NB_IPV4ROOT) { + errno = -EOVERFLOW; return -1; }