X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fgetvserverbyctx.c;h=e22e9aeb4c9d60660d78c95f04461996a9ab20d8;hb=0ffb0e4081f6cad6b6908ffceb53ea33300193ed;hp=5c0be0a837ca433a3d50939c0f629b6f6b2b5763;hpb=45910d43ec9b4ef36e07f74348801ead61382482;p=util-vserver.git diff --git a/util-vserver/lib/getvserverbyctx.c b/util-vserver/lib/getvserverbyctx.c index 5c0be0a..e22e9ae 100644 --- a/util-vserver/lib/getvserverbyctx.c +++ b/util-vserver/lib/getvserverbyctx.c @@ -23,15 +23,17 @@ #include "vserver.h" #include "internal.h" #include "pathconfig.h" +#include "compat-c99.h" #include #include char * -vc_getVserverByCtx(ctx_t ctx, vcCfgStyle *style, char const *revdir) +vc_getVserverByCtx(xid_t ctx, vcCfgStyle *style, char const *revdir) { if (revdir==0) revdir = DEFAULT_PKGSTATEREVDIR; + { vcCfgStyle cur_style = vcCFG_NONE; size_t l = strlen(revdir); size_t l1; @@ -53,7 +55,7 @@ vc_getVserverByCtx(ctx_t ctx, vcCfgStyle *style, char const *revdir) case vcCFG_RECENT_SHORT : case vcCFG_RECENT_FULL : // check if expected ctx == actual ctx - if (vc_getVserverCtx(path, vcCFG_RECENT_FULL)!=ctx) return 0; + if (vc_getVserverCtx(path, vcCFG_RECENT_FULL, false, 0)!=ctx) return 0; if (style) *style = vcCFG_RECENT_FULL; return strdup(path); @@ -61,4 +63,5 @@ vc_getVserverByCtx(ctx_t ctx, vcCfgStyle *style, char const *revdir) default : return 0; } + } }