From: Enrico Scholz Date: Mon, 2 Feb 2004 19:32:01 +0000 (+0000) Subject: return xid_t instead of void X-Git-Tag: VERSION_0_10~798 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05df8408d024814630ea6584eb469cb909920cc9;p=util-vserver.git return xid_t instead of void git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@747 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/wrappers-vserver.h b/util-vserver/src/wrappers-vserver.h index d407c0c..8425302 100644 --- a/util-vserver/src/wrappers-vserver.h +++ b/util-vserver/src/wrappers-vserver.h @@ -22,11 +22,12 @@ #include "wrappers.h" #include -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