static void
client_notify_write(struct ustream *s, int bytes)
{
- client_close(s);
}
static void client_notify_state(struct ustream *s)
{
- return client_close(s);
+ client_close(s);
}
static int
int ret;
ret = ubus_add_object(ctx, &log_object);
- if (ret)
+ if (ret) {
fprintf(stderr, "Failed to add object: %s\n", ubus_strerror(ret));
+ exit(1);
+ }
fprintf(stderr, "log: connected to ubus\n");
}