ready for tagging
[util-vserver.git] / src / vcontext.c
index 78dc1b6..3461482 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: vcontext.c 2415 2006-12-08 13:24:49Z dhozac $    --*- c -*--
+// $Id: vcontext.c 2578 2007-08-08 20:05:26Z dhozac $    --*- c -*--
 
 // Copyright (C) 2004-2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
 //  
@@ -254,15 +254,15 @@ doit(struct Arguments const *args, int argc, char *argv[])
     doSyncStage0(p, args->do_disconnect);  
     
     if (args->do_create) {
-      xid = vc_ctx_create(args->xid);
+      xid = vc_ctx_create(args->xid, NULL);
       if (xid==VC_NOCTX) {
        switch (errno) {
          case EEXIST   :
            if (!args->is_silentexist)
-             perror(ENSC_WRAPPERS_PREFIX "vc_create_context()");
+             perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
            return 254;
          default       :
-           perror(ENSC_WRAPPERS_PREFIX "vc_create_context()");
+           perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
            return wrapper_exit_code;
        }
       }
@@ -282,7 +282,7 @@ doit(struct Arguments const *args, int argc, char *argv[])
     setFlags(args, xid);
 
     if (args->do_migrate && !args->do_migrateself)
-      Evc_ctx_migrate(xid);
+      Evc_ctx_migrate(xid, 0);
 
     if (args->uid != NULL) {
       uid_t uid = 0;