]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
include: cleanup unnecessary getline defines
authorLuka Perkov <luka.perkov@sartura.hr>
Mon, 13 Jan 2014 17:46:50 +0000 (17:46 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Jan 2014 21:35:48 +0000 (16:35 -0500)
The removed chunk is already defined in utils.h which
is included in modified files.

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgroup.c
src/lxc/lxc_usernsexec.c
src/lxc/lxccontainer.c
src/lxc/utils.c

index be43c73c41927361e881b2f96329fb5d0ce9b1db..a192c3d59507aa5d96d59867fd49e6ac66bb3dd7 100644 (file)
 #include <mntent.h>
 #endif
 
-#ifndef HAVE_GETLINE
-#ifdef HAVE_FGETLN
-#include <../include/getline.h>
-#endif
-#endif
-
 lxc_log_define(lxc_cgroup, lxc);
 
 static struct cgroup_process_info *lxc_cgroup_process_info_getx(const char *proc_pid_cgroup_str, struct cgroup_meta_data *meta);
index 6da4d6404195a6e99dd4528271a90962fe5e40b9..35cd4738bee1820066f52f7e54fdd806d48427b1 100644 (file)
 #include "namespace.h"
 #include "utils.h"
 
-#ifndef HAVE_GETLINE
-#ifdef HAVE_FGETLN
-#include <../include/getline.h>
-#endif
-#endif
-
 int unshare(int flags);
 
 static void usage(const char *name)
index 48fef74f84ada7f0765dcec455c2b4b3cd5b5477..ab97eef1412877ea3ff3c1b9808770dac105f027 100644 (file)
 #include <../include/ifaddrs.h>
 #endif
 
-#ifndef HAVE_GETLINE
-#ifdef HAVE_FGETLN
-#include <../include/getline.h>
-#endif
-#endif
-
 #define MAX_BUFFER 4096
 
 lxc_log_define(lxc_container, lxc);
index 2bb4d7205ab4d8a570039ad77029593acc3db580..3746adb9f8774e8a5093eb17df0a3b0be459bf31 100644 (file)
 #include <sys/wait.h>
 #include <assert.h>
 
-#ifndef HAVE_GETLINE
-#ifdef HAVE_FGETLN
-#include <../include/getline.h>
-#endif
-#endif
-
 #include "utils.h"
 #include "log.h"
 #include "lxclock.h"