X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fvserver-start%2Finterface.c;h=c3f3bb34c8b75ff29bce3215144e6ac8bfb5193b;hb=3eb1b2279739d0f16391a3724a9897c686f030d3;hp=d6fd9f1cf31a912a044772dee422ab0e3d37c9ae;hpb=459ba6df2aeae93944f901a2ff2181289cc8db99;p=util-vserver.git diff --git a/util-vserver/vserver-start/interface.c b/util-vserver/vserver-start/interface.c index d6fd9f1..c3f3bb3 100644 --- a/util-vserver/vserver-start/interface.c +++ b/util-vserver/vserver-start/interface.c @@ -35,12 +35,12 @@ Iface_removeWrapper(void const *iface) } void -activateInterfaces() +activateInterfaces(InterfaceList const *interfaces) { struct Interface const * iface; - for (iface=Vector_begin(&cfg.interfaces); - iface!=Vector_end(&cfg.interfaces); + for (iface=Vector_begin_const(interfaces); + iface!=Vector_end_const(interfaces); ++iface) { if (!Iface_add(iface)) { WRITE_MSG(2, "Failed to add interface ");