diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-26 21:27:40 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-26 21:27:40 +0000 |
commit | 854f901f491ccda79aee11edc3d59109cb229d28 (patch) | |
tree | cfaf27b1e11af5c7504e6825e205d9d1ed2c6035 /avahi-core/querier-test.c | |
parent | 740bc001fb647255709b5385d5a8a19781722097 (diff) |
* avahi-utils: replace python avahi-browse with a version written in C.
* remove -Wunused from GCC command line and use "unused" attribute instead
* remove AVAHI_CLIENT_S_FAILURE and AVAHI_CLIENT_S_INVALID since these event's are never forwarded to the client anyway
* make use of AVAHI_GCC_NORETURN
* really send eror code with StateChange DBUS signals
* ignore EINTR in avahi_simple_poll_loop()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@879 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/querier-test.c')
-rw-r--r-- | avahi-core/querier-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avahi-core/querier-test.c b/avahi-core/querier-test.c index 6ba33d0..1c28ea0 100644 --- a/avahi-core/querier-test.c +++ b/avahi-core/querier-test.c @@ -65,11 +65,11 @@ static void sb_callback( const char *service_type, const char *domain, AvahiLookupResultFlags flags, - void* userdata) { + AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("SB%i: (%i.%s) <%s> as <%s> in <%s> [%s] cached=%i", b == service_browser1 ? 1 : 2, iface, avahi_proto_to_string(protocol), name, service_type, domain, browser_event_to_string(event), !!(flags & AVAHI_LOOKUP_RESULT_CACHED)); } -static void create_second_service_browser(AvahiTimeout *timeout, void* userdata) { +static void create_second_service_browser(AvahiTimeout *timeout, AVAHI_GCC_UNUSED void* userdata) { service_browser2 = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, SERVICE_TYPE, DOMAIN, 0, sb_callback, NULL); assert(service_browser2); @@ -77,11 +77,11 @@ static void create_second_service_browser(AvahiTimeout *timeout, void* userdata) poll_api->timeout_free(timeout); } -static void quit(AvahiTimeout *timeout, void *userdata) { +static void quit(AVAHI_GCC_UNUSED AvahiTimeout *timeout, AVAHI_GCC_UNUSED void *userdata) { avahi_simple_poll_quit(simple_poll); } -int main(int argc, char *argv[]) { +int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct timeval tv; AvahiServerConfig config; |