There is no vc_create_context. Stop referencing it.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 10 Jan 2007 18:49:13 +0000 (18:49 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 10 Jan 2007 18:49:13 +0000 (18:49 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2448 94cd875c-1c1d-0410-91d2-eb244daf1a30

lib/syscall.c
src/rpm-fake.c
src/vcontext.c

index 1a8634d..1d17423 100644 (file)
@@ -60,7 +60,7 @@ vc_set_ipv4root(uint32_t  bcast, size_t nb, struct vc_ip_mask_pair const *ips)
          CALL_VC_LEGACY(vc_set_ipv4root, bcast, nb, ips));
 }
 
-LINK_WARNING("vc_new_s_context", "warning: vc_new_s_context() is obsoleted; use vc_create_context() instead of");
+LINK_WARNING("vc_new_s_context", "warning: vc_new_s_context() is obsoleted; use vc_ctx_create() instead of");
 LINK_WARNING("vc_set_ipv4root",  "warning: vc_set_ipv4root() is obsoleted; use vc_net_create() instead of");
 
 #endif
index 380bf07..eb1d721 100644 (file)
@@ -247,7 +247,7 @@ setupContext(xid_t xid, char const **xid_str)
     if ((xid==VC_DYNAMIC_XID || !vc_is_dynamic_xid(xid)) &&
        (rc=vc_ctx_create(xid))==VC_NOCTX &&
        errno!=EEXIST) {
-      perror(ENSC_WRAPPERS_PREFIX "vc_create_context()");
+      perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()");
       exit(255);
     }
 
index 0557a30..21fae96 100644 (file)
@@ -259,10 +259,10 @@ doit(struct Arguments const *args, int argc, char *argv[])
        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;
        }
       }