return xid_t instead of void
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 Feb 2004 19:32:01 +0000 (19:32 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 Feb 2004 19:32:01 +0000 (19:32 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@747 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/wrappers-vserver.h

index d407c0c..8425302 100644 (file)
 #include "wrappers.h"
 #include <vserver.h>
 
-inline static UNUSED void
+inline static UNUSED xid_t
 Evc_new_s_context(xid_t ctx, unsigned int remove_cap, unsigned int flags)
 {
-  FatalErrnoError(vc_new_s_context(ctx,remove_cap,flags)==-1,
-                 "vc_new_s_context()");
+  register xid_t       res = vc_new_s_context(ctx,remove_cap,flags);
+  FatalErrnoError(res==VC_NOCTX, "vc_new_s_context()");
+  return res;
 }
 
 inline static UNUSED xid_t