use sethostname(2)/setdomainname(2) again...
[util-vserver.git] / util-vserver / src / vps.c
index 325beae..99ee4a9 100644 (file)
@@ -51,7 +51,7 @@ showHelp(int fd, char const *cmd, int res)
   WRITE_MSG(fd, "Usage:  ");
   WRITE_STR(fd, cmd);
   WRITE_MSG(fd,
-           " <ps-args>*\n\n"
+           " <ps-opts>*\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
   exit(res);
 }
@@ -62,7 +62,7 @@ showVersion()
   WRITE_MSG(1,
            "vps " VERSION " -- shows processes in vserver-contexts\n"
            "This program is part of " PACKAGE_STRING "\n\n"
-           "Copyright (C) 2003 Enrico Scholz\n"
+           "Copyright (C) 2004 Enrico Scholz\n"
            VERSION_COPYRIGHT_DISCLAIMER);
   exit(0);
 }
@@ -96,7 +96,7 @@ extractCtx(char *pid_str)
   while (*pid_str==' ') ++pid_str;
   pid = atoi(pid_str);
 
-  return vc_X_getctx(pid);
+  return vc_get_task_xid(pid);
 }
 
 static char const *
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
     if (strcmp(argv[1], "--version")==0) showVersion();
   }
     
-  if (vc_X_getctx(0)!=1)
+  if (vc_get_task_xid(0)!=1)
     Evc_new_s_context(1, vc_get_securecaps(), 0);
 
   Epipe(p);