#include <unistd.h>
-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;
struct vcmd_set_ipv4root_v3 msg;
size_t i;
- if (nb>=NB_IPV4ROOT) {
- errno = -EINVAL;
+ if (nb>NB_IPV4ROOT) {
+ errno = -EOVERFLOW;
return -1;
}