These two functions return void, do not try to return a parameter. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
@@ -49,8 +49,10 @@ run_cmd(const char *ifname, const char *device, enum interface_event event,
int pid;
pid = fork();
- if (pid < 0)
- return task_complete(NULL, -1);
+ if (pid < 0) {
+ task_complete(NULL, -1);
+ return;
+ }
if (pid > 0) {
task.pid = pid;
@@ -129,7 +129,8 @@ netifd_process_cb(struct uloop_process *proc, int ret)
np = container_of(proc, struct netifd_process, uloop);
netifd_delete_process(np);
- return np->cb(np, ret);
+ np->cb(np, ret);
}
int