X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_event.c;h=85031a6fc150c94847b1db9b3381f8ff485ea72b;hp=d12bcb8864ef27a90ddcb0335a5ec4a3129bb0f0;hb=7e746e5a850b1c5ef87b8d8538e921f2051f5471;hpb=74eddc472d8c647f21a475bbe780b4509636ae35 diff --git a/ubusd_event.c b/ubusd_event.c index d12bcb8..85031a6 100644 --- a/ubusd_event.c +++ b/ubusd_event.c @@ -1,3 +1,16 @@ +/* + * Copyright (C) 2011 Felix Fietkau + * + * 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 + * as published by the Free Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + #include #include "ubusd.h" @@ -121,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])