diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-29 14:10:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-30 09:53:47 +0100 |
commit | 1542738826dd0ed26cfc8f5e2e37ffe80f1b9676 (patch) | |
tree | 7eb7a6bfdb7f4217449741942253c2115e6ad5d7 /ubus.c | |
parent | 501c6d70a6a7357652e2a4fb1ad5856d90bde29b (diff) | |
download | unitd-1542738826dd0ed26cfc8f5e2e37ffe80f1b9676.tar unitd-1542738826dd0ed26cfc8f5e2e37ffe80f1b9676.zip |
Rename to unitd, clean up CMakeLists.txt
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); |