diff options
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,9 @@ /* + * Copyright (C) 2015 Matthias Schiffer <mschiffer@universe-factory.net> + * + * Based on "procd" by: * Copyright (C) 2013 Felix Fietkau <nbd@openwrt.org> * Copyright (C) 2013 John Crispin <blogic@openwrt.org> - * Copyright (C) 2015 Matthias Schiffer <mschiffer@universe-factory.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1 @@ -18,7 +20,7 @@ #include <unistd.h> #include <signal.h> -#include "procd.h" +#include "unitd.h" char *ubus_socket = NULL; static struct ubus_context *ctx; @@ -57,11 +59,11 @@ ubus_connect_cb(struct uloop_timeout *timeout) DEBUG(2, "Connected to ubus, id=%08x\n", ctx->local_id); ubus_add_uloop(ctx); - procd_state_ubus_connect(); + unitd_state_ubus_connect(); } void -procd_connect_ubus(void) +unitd_connect_ubus(void) { ubus_timer.cb = ubus_connect_cb; uloop_timeout_set(&ubus_timer, 1000); |