From: Marc Fiuczynski Date: Thu, 30 Oct 2008 06:22:33 +0000 (+0000) Subject: clean up to produce less warnings X-Git-Tag: util-vserver-pl-0.3-15~3 X-Git-Url: http://git.onelab.eu/?p=util-vserver-pl.git;a=commitdiff_plain;h=f925934b595e983e5f0d980402b72bac7dd8e927;hp=7e7bb8278e154e417c62c0fcfff4c152e8015edb clean up to produce less warnings --- diff --git a/src/planetlab.c b/src/planetlab.c index db9c430..d3669e3 100644 --- a/src/planetlab.c +++ b/src/planetlab.c @@ -43,6 +43,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include #include #define _GNU_SOURCE #include @@ -50,6 +51,9 @@ POSSIBILITY OF SUCH DAMAGE. #include "vserver.h" #include "planetlab.h" +/* defined in netns.c */ +extern uint32_t get_space_flag(xid_t); + #ifndef VC_NXC_RAW_SOCKET # define VC_NXC_RAW_SOCKET 0x00000200ull #endif @@ -89,8 +93,6 @@ tag: if (vc_tag_create(ctx) == VC_NOCTX) return -1; -process: - /* * Create context info - this sets the STATE_SETUP and STATE_INIT flags. */ @@ -375,7 +377,7 @@ pl_get_limits(const char *context, struct sliver_resources *slr) fclose(fb); } - fchdir(cwd); + (void)fchdir(cwd); out_fd: close(cwd); out: