added 'fmt'
[util-vserver.git] / util-vserver / lib / syscall-compat.hc
index 3620ebc..1cbd166 100644 (file)
@@ -26,7 +26,7 @@
 
 #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;
@@ -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;
   }