summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-15 17:42:25 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-15 17:42:25 +0200
commit8c4dface377cf03de38c642b90940530e47296d3 (patch)
tree6383e3101953887dadf02d760de4d2d8cbee0e92 /main.c
parent39d99df0854b33e441b08aa18aa80817a50ef22c (diff)
move netifd_start_process dir_fd to the data structure
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index abc220e..04d5648 100644
--- a/main.c
+++ b/main.c
@@ -26,7 +26,7 @@ netifd_process_cb(struct uloop_process *proc, int ret)
}
int
-netifd_start_process(const char **argv, char **env, int dir_fd, struct netifd_process *proc)
+netifd_start_process(const char **argv, char **env, struct netifd_process *proc)
{
int pid;
@@ -42,8 +42,8 @@ netifd_start_process(const char **argv, char **env, int dir_fd, struct netifd_pr
env++;
}
}
- if (dir_fd >= 0)
- fchdir(dir_fd);
+ if (proc->dir_fd >= 0)
+ fchdir(proc->dir_fd);
execvp(argv[0], (char **) argv);
exit(127);
}