summaryrefslogtreecommitdiffstats
path: root/avahi-utils/avahi-browse.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-16 22:34:12 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-16 22:34:12 +0000
commit93ac6c737b2566e76162ad70c35c0167de82c76b (patch)
tree098657bff83360ac7192648166613d37eebaf553 /avahi-utils/avahi-browse.c
parente40d90b546b31082e9a2dc415c215c5e8d55196c (diff)
Implement avahi-publish{-address, service} in C
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@988 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-utils/avahi-browse.c')
-rw-r--r--avahi-utils/avahi-browse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/avahi-utils/avahi-browse.c b/avahi-utils/avahi-browse.c
index e9c4073..a5d9d25 100644
--- a/avahi-utils/avahi-browse.c
+++ b/avahi-utils/avahi-browse.c
@@ -568,7 +568,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
if (config->verbose)
fprintf(stderr, "Waiting for daemon ...\n");
- break;
+ break;
}
}
@@ -593,10 +593,11 @@ static void help(FILE *f, const char *argv0) {
" -c --cache Terminate after dumping all entries from the cache\n"
" -l --ignore-local Ignore local services\n"
" -r --resolve Resolve services found\n"
- " -f --no-fail Don't fail if the server is not available\n"
+ " -f --no-fail Don't fail if the daemon is not available\n"
#ifdef HAVE_GDBM
- " -k --no-db-lookup Don't lookup service types\n");
+ " -k --no-db-lookup Don't lookup service types\n"
#endif
+ );
}
static int parse_command_line(Config *c, const char *argv0, int argc, char *argv[]) {
@@ -656,6 +657,7 @@ static int parse_command_line(Config *c, const char *argv0, int argc, char *argv
c->command = COMMAND_BROWSE_DOMAINS;
break;
case 'd':
+ avahi_free(c->domain);
c->domain = avahi_strdup(optarg);
break;
case 'v':