From: Daniel Hokka Zakrisson Date: Wed, 10 Jan 2007 18:49:13 +0000 (+0000) Subject: There is no vc_create_context. Stop referencing it. X-Git-Tag: release-0.30.214~157 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7079774d8c30a1a2eafce390b1f1689fb2f1539;p=util-vserver.git There is no vc_create_context. Stop referencing it. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2448 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/lib/syscall.c b/lib/syscall.c index 1a8634d..1d17423 100644 --- a/lib/syscall.c +++ b/lib/syscall.c @@ -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 diff --git a/src/rpm-fake.c b/src/rpm-fake.c index 380bf07..eb1d721 100644 --- a/src/rpm-fake.c +++ b/src/rpm-fake.c @@ -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); } diff --git a/src/vcontext.c b/src/vcontext.c index 0557a30..21fae96 100644 --- a/src/vcontext.c +++ b/src/vcontext.c @@ -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; } }