git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7e7bb82
)
clean up to produce less warnings
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 30 Oct 2008 06:22:33 +0000
(06:22 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 30 Oct 2008 06:22:33 +0000
(06:22 +0000)
src/planetlab.c
patch
|
blob
|
history
diff --git
a/src/planetlab.c
b/src/planetlab.c
index
db9c430
..
d3669e3
100644
(file)
--- a/
src/planetlab.c
+++ b/
src/planetlab.c
@@
-43,6
+43,7
@@
POSSIBILITY OF SUCH DAMAGE.
#include <unistd.h>
#include <ctype.h>
#include <sys/resource.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/resource.h>
+#include <sys/types.h>
#include <fcntl.h>
#define _GNU_SOURCE
#include <sched.h>
#include <fcntl.h>
#define _GNU_SOURCE
#include <sched.h>
@@
-50,6
+51,9
@@
POSSIBILITY OF SUCH DAMAGE.
#include "vserver.h"
#include "planetlab.h"
#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
#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;
if (vc_tag_create(ctx) == VC_NOCTX)
return -1;
-process:
-
/*
* Create context info - this sets the STATE_SETUP and STATE_INIT flags.
*/
/*
* 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);
}
fclose(fb);
}
- fchdir(cwd);
+
(void)
fchdir(cwd);
out_fd:
close(cwd);
out:
out_fd:
close(cwd);
out: