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=6205e50ad110c0c1d5f2421c8db2f2bc477fea1a;hpb=d0ae91f088249a5c126ad170b82a8fc6e669b95f;p=util-vserver.git diff --git a/util-vserver/lib/getvserverbyctx.c b/util-vserver/lib/getvserverbyctx.c index 6205e50..e22e9ae 100644 --- a/util-vserver/lib/getvserverbyctx.c +++ b/util-vserver/lib/getvserverbyctx.c @@ -29,11 +29,11 @@ #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; - BS; + { vcCfgStyle cur_style = vcCFG_NONE; size_t l = strlen(revdir); size_t l1; @@ -55,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); @@ -63,5 +63,5 @@ vc_getVserverByCtx(ctx_t ctx, vcCfgStyle *style, char const *revdir) default : return 0; } - BE; + } }