Merge pull request #372 from rhatdan/gcc5.0
Changes required to keep gcc 5.0 quiet and happy.
This commit is contained in:
commit
cee97cb0cc
|
@ -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)
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
package nsenter
|
||||
|
||||
/*
|
||||
__attribute__((constructor)) init() {
|
||||
void nsenter();
|
||||
__attribute__((constructor)) int init() {
|
||||
nsenter();
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue