added tests for new flags
[util-vserver.git] / util-vserver / lib / syscall_getflags-v13.hc
index 5d8be82..fc7a73a 100644 (file)
 
 static inline ALWAYSINLINE int
 vc_get_flags_v13(xid_t xid, struct vc_ctx_flags *flags)
-
 {
   struct vcmd_ctx_flags_v0     k_flags;
   int                          res;
 
   if (flags==0) {
-    errno = EINVAL;
+    errno = EFAULT;
     return -1;
   }