summaryrefslogtreecommitdiffstats
path: root/avahi-core/avahi-test.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-10-17 20:07:43 +0000
committerTrent Lloyd <lathiat@bur.st>2005-10-17 20:07:43 +0000
commit3adbda2cd5be48b7c630325f0f92e315d7eb2cfb (patch)
treefa98de69267ed3e7f1a3e915b2632afebe8ddb38 /avahi-core/avahi-test.c
parentc1c236e751d126f3aeffe3ccf5da889dbf853b2f (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 'avahi-core/avahi-test.c')
-rw-r--r--avahi-core/avahi-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c
index cf8bd3b..8cf1d34 100644
--- a/avahi-core/avahi-test.c
+++ b/avahi-core/avahi-test.c
@@ -200,7 +200,7 @@ static void hnr_callback(
const AvahiAddress *a,
AvahiLookupResultFlags flags,
void* userdata) {
- char t[64];
+ char t[AVAHI_ADDRESS_STR_MAX];
if (a)
avahi_address_snprint(t, sizeof(t), a);
@@ -217,7 +217,7 @@ static void ar_callback(
const char *hostname,
AvahiLookupResultFlags flags,
void* userdata) {
- char t[64];
+ char t[AVAHI_ADDRESS_STR_MAX];
avahi_address_snprint(t, sizeof(t), a);
@@ -280,7 +280,7 @@ static void sr_callback(
if (event != AVAHI_RESOLVER_FOUND)
avahi_log_debug("SR: (%i.%i) <%s> as %s in <%s> [%s]", iface, protocol, name, service_type, domain_name, resolver_event_to_string(event));
else {
- char t[64], *s;
+ char t[AVAHI_ADDRESS_STR_MAX], *s;
avahi_address_snprint(t, sizeof(t), a);
@@ -301,7 +301,7 @@ static void dsb_callback(
AvahiLookupResultFlags flags,
void* userdata) {
- char t[64] = "n/a";
+ char t[AVAHI_ADDRESS_STR_MAX] = "n/a";
if (a)
avahi_address_snprint(t, sizeof(t), a);