From 95062c1ef74695d138bbc4b9efc5910b1436bd9c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 29 May 2012 00:40:50 +0200 Subject: [PATCH] make a few functions static --- ubus-example.c | 2 +- ubusd_event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]) -- 2.25.1