diff options
author | Trent Lloyd <lathiat@bur.st> | 2005-10-17 20:07:43 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2005-10-17 20:07:43 +0000 |
commit | 3adbda2cd5be48b7c630325f0f92e315d7eb2cfb (patch) | |
tree | fa98de69267ed3e7f1a3e915b2632afebe8ddb38 /examples | |
parent | c1c236e751d126f3aeffe3ccf5da889dbf853b2f (diff) |
* Add custom user-specific configure flags to bootstrap.sh
* Add new constant AVAHI_ADDRESS_STR_MAX for use with
avahi_address_snprint arr
ays
* Update all our code to use AVAHI_ADDRESS_STR_MAX
* Add avahi_client_add_address to avahi-client
* Add avahi_client_add_address test to avahi-client
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@800 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'examples')
-rw-r--r-- | examples/client-browse-services.c | 2 | ||||
-rw-r--r-- | examples/core-browse-services.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c index 7918cad..3bbed11 100644 --- a/examples/client-browse-services.c +++ b/examples/client-browse-services.c @@ -62,7 +62,7 @@ static void resolve_callback( break; case AVAHI_RESOLVER_FOUND: { - char a[128], *t; + char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "Service '%s' of type '%s' in domain '%s':\n", name, type, domain); diff --git a/examples/core-browse-services.c b/examples/core-browse-services.c index 5de47b3..57fafe4 100644 --- a/examples/core-browse-services.c +++ b/examples/core-browse-services.c @@ -73,7 +73,7 @@ static void resolve_callback( break; case AVAHI_RESOLVER_FOUND: { - char a[128], *t; + char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "(Resolver) Service '%s' of type '%s' in domain '%s':\n", name, type, domain); |