From: Enrico Scholz Date: Thu, 16 Oct 2003 15:07:51 +0000 (+0000) Subject: removed all traces of X-Git-Tag: VERSION_0_10~1229 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57c3f8eadb5afec69eee36a7780efa617648ac86;p=util-vserver.git removed all traces of git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@181 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/tests/getctx.c b/util-vserver/tests/getctx.c index 577f35c..93909b2 100644 --- a/util-vserver/tests/getctx.c +++ b/util-vserver/tests/getctx.c @@ -22,15 +22,24 @@ #include "compat.h" #include "vserver.h" +#include "internal.h" +#include "src/util.h" -#include #include #include int main(int argc, char *argv[]) { - if (argc==1) printf("%i\n", vc_X_getctx(0)); - else printf("%i\n", vc_X_getctx(atoi(argv[1]))); + char buf[32]; + ctx_t ctx; + + if (argc==1) ctx = vc_X_getctx(0); + else ctx = vc_X_getctx(atoi(argv[1])); + + utilvserver_int2str(buf, sizeof buf, ctx, 10); + + WRITE_STR(1, buf); + WRITE_MSG(1, "\n"); return 0; }