diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-11-06 16:12:03 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-11-06 16:12:03 +0000 |
commit | 4e2113a7d5b702ff070e8220b32662bb00ae02dd (patch) | |
tree | 1a1812f25e83f36d5fd9667939ab253219be3ec7 /examples/client-browse-services.c | |
parent | 3b4cd4f3530aa24bb5b38146372b87e966ce62d4 (diff) |
* Rename AVAHI_ERR_NOT_CONNECTED to AVAHI_ERR_DISCONNECTED
* Remove client state AVAHI_CLIENT_DISCONNECTED and replace it with AVAHI_CLIENT_FAILURE with error code set to AVAHI_ERR_DISCONNECTED
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@935 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'examples/client-browse-services.c')
-rw-r--r-- | examples/client-browse-services.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c index c5a1cbd..00703e6 100644 --- a/examples/client-browse-services.c +++ b/examples/client-browse-services.c @@ -145,8 +145,8 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN /* Called whenever the client or server state changes */ - if (state == AVAHI_CLIENT_DISCONNECTED) { - fprintf(stderr, "Server connection terminated.\n"); + if (state == AVAHI_CLIENT_FAILURE) { + fprintf(stderr, "Server connection failre: %s\n", avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); } } |