Skip to content

Commit

Permalink
reorder and remove unused imports in nsexec.c
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel, Dao Quang Minh <[email protected]>
  • Loading branch information
dqminh committed Sep 14, 2015
1 parent d61b62c commit 24e1066
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions libcontainer/nsenter/nsexec.c
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
#define _GNU_SOURCE
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <endian.h>
#include <errno.h>
#include <string.h>
#include <linux/limits.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <signal.h>
#include <setjmp.h>
#include <linux/limits.h>
#include <linux/netlink.h>
#include <sched.h>
#include <setjmp.h>
#include <signal.h>
#include <endian.h>
#include <stdint.h>
#include <inttypes.h>

// netlink related
#include <linux/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include <unistd.h>

/* All arguments should be above stack, because it grows down */
struct clone_arg {
Expand Down

0 comments on commit 24e1066

Please sign in to comment.