Merge pull request #372 from rhatdan/gcc5.0

Changes required to keep gcc 5.0 quiet and happy.
This commit is contained in:
Mrunal Patel 2015-02-12 11:42:14 -08:00
commit cee97cb0cc
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,10 @@
//
// formated with indent -linux nsenter.c
#define _GNU_SOURCE
#include <sched.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/limits.h>
@ -18,7 +22,7 @@
#define pr_perror(fmt, ...) fprintf(stderr, "nsenter: " fmt ": %m\n", ##__VA_ARGS__)
static const kBufSize = 256;
static const int kBufSize = 256;
static const char *kNsEnter = "nsenter";
void get_args(int *argc, char ***argv)

View File

@ -3,7 +3,8 @@
package nsenter
/*
__attribute__((constructor)) init() {
void nsenter();
__attribute__((constructor)) int init() {
nsenter();
}
*/