cosmetical cleanups
[util-vserver.git] / util-vserver / lib / getvserverbyctx.c
index 5c0be0a..e22e9ae 100644 (file)
 #include "vserver.h"
 #include "internal.h"
 #include "pathconfig.h"
+#include "compat-c99.h"
 
 #include <string.h>
 #include <unistd.h>
 
 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;
   }
+  }
 }