From: Felix Fietkau Date: Mon, 28 May 2012 22:40:50 +0000 (+0200) Subject: make a few functions static X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=95062c1ef74695d138bbc4b9efc5910b1436bd9c;p=oweals%2Fubus.git make a few functions static --- diff --git a/ubus-example.c b/ubus-example.c index 99bf30b..53d275b 100644 --- a/ubus-example.c +++ b/ubus-example.c @@ -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); diff --git a/ubusd_event.c b/ubusd_event.c index 11b51ee..85031a6 100644 --- a/ubusd_event.c +++ b/ubusd_event.c @@ -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])