make a few functions static
authorFelix Fietkau <nbd@openwrt.org>
Mon, 28 May 2012 22:40:50 +0000 (00:40 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 28 May 2012 22:40:50 +0000 (00:40 +0200)
ubus-example.c
ubusd_event.c

index 99bf30b..53d275b 100644 (file)
@@ -60,7 +60,7 @@ static const struct blobmsg_policy watch_policy[__WATCH_MAX] = {
        [WATCH_ID] = { .name = "id", .type = BLOBMSG_TYPE_INT32 },
 };
 
-void test_handle_event(struct ubus_context *ctx, struct ubus_watch_object *w,
+static void test_handle_event(struct ubus_context *ctx, struct ubus_watch_object *w,
                        uint32_t id)
 {
        fprintf(stderr, "Object %08x went away\n", id);
index 11b51ee..85031a6 100644 (file)
@@ -134,7 +134,7 @@ static void ubusd_send_event_msg(struct ubus_msg_buf **ub, struct ubus_client *c
        ubus_msg_send(obj->client, *ub, false);
 }
 
-bool strmatch_len(const char *s1, const char *s2, int *len)
+static bool strmatch_len(const char *s1, const char *s2, int *len)
 {
        for (*len = 0; s1[*len] == s2[*len]; (*len)++)
                if (!s1[*len])