Skip to content

Commit

Permalink
lxc_user_nic: don't pass unused arg to get_username()
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
hallyn committed Nov 19, 2013
1 parent 8d9f636 commit 95dfc8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/lxc_user_nic.c
Expand Up @@ -122,7 +122,7 @@ int open_and_lock(char *path)
}


char *get_username(char **buf)
char *get_username(void)
{
struct passwd *pwd = getpwuid(getuid());

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 95dfc8b

Please sign in to comment.