Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
94d942c3
Commit
94d942c3
authored
Nov 08, 2013
by
Qiang Huang
Committed by
Serge Hallyn
Nov 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc_user_nic: remove duplicate code
It's a duplicate of util.h. Signed-off-by:
Qiang Huang
<
h.huangqiang@huawei.com
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
9beb9ce0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lxc_user_nic.c
src/lxc/lxc_user_nic.c
+0
-20
No files found.
src/lxc/lxc_user_nic.c
View file @
94d942c3
...
@@ -49,25 +49,6 @@
...
@@ -49,25 +49,6 @@
#include "config.h"
#include "config.h"
#include "utils.h"
#include "utils.h"
#ifndef HAVE_GETLINE
#ifdef HAVE_FGETLN
#include <../include/getline.h>
#endif
#endif
/* Define setns() if missing from the C library */
#ifndef HAVE_SETNS
static
inline
int
setns
(
int
fd
,
int
nstype
)
{
#ifdef __NR_setns
return
syscall
(
__NR_setns
,
fd
,
nstype
);
#else
errno
=
ENOSYS
;
return
-
1
;
#endif
}
#endif
#if ISTEST
#if ISTEST
#define CONF_FILE "/tmp/lxc-usernet"
#define CONF_FILE "/tmp/lxc-usernet"
#define DB_FILE "/tmp/nics"
#define DB_FILE "/tmp/nics"
...
@@ -76,7 +57,6 @@ static inline int setns(int fd, int nstype)
...
@@ -76,7 +57,6 @@ static inline int setns(int fd, int nstype)
#define DB_FILE LXC_USERNIC_DB
#define DB_FILE LXC_USERNIC_DB
#endif
#endif
#include "nl.h"
#include "nl.h"
#ifndef IFLA_LINKMODE
#ifndef IFLA_LINKMODE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment