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
95dfc8bd
Commit
95dfc8bd
authored
Nov 19, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc_user_nic: don't pass unused arg to get_username()
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
8d9f636d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lxc_user_nic.c
src/lxc/lxc_user_nic.c
+3
-3
No files found.
src/lxc/lxc_user_nic.c
View file @
95dfc8bd
...
...
@@ -122,7 +122,7 @@ int open_and_lock(char *path)
}
char
*
get_username
(
char
**
buf
)
char
*
get_username
(
void
)
{
struct
passwd
*
pwd
=
getpwuid
(
getuid
());
...
...
@@ -901,13 +901,13 @@ int main(int argc, char *argv[])
{
int
n
,
fd
;
bool
gotone
=
false
;
char
*
me
,
*
buf
=
alloca
(
400
)
;
char
*
me
;
char
*
nicname
=
alloca
(
40
);
char
*
cnic
;
// created nic name in container is returned here.
char
*
vethname
;
int
pid
;
if
((
me
=
get_username
(
&
buf
))
==
NULL
)
{
if
((
me
=
get_username
())
==
NULL
)
{
fprintf
(
stderr
,
"Failed to get username
\n
"
);
exit
(
1
);
}
...
...
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