From 182da3ab7be8f813a09f1807c1c76747eff02af6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 26 Oct 2005 01:34:48 +0000 Subject: reorder arguments of avahi_reverse_lookup_name() to make them more natural git-svn-id: file:///home/lennart/svn/public/avahi/trunk@874 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/address.c | 2 +- avahi-common/address.h | 2 +- avahi-common/alternative.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'avahi-common') diff --git a/avahi-common/address.c b/avahi-common/address.c index 56b4058..640aa06 100644 --- a/avahi-common/address.c +++ b/avahi-common/address.c @@ -66,7 +66,7 @@ char *avahi_address_snprint(char *s, size_t length, const AvahiAddress *a) { return s; } -char* avahi_reverse_lookup_name(char *ret_s, size_t length, const AvahiAddress *a) { +char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length) { assert(ret_s); assert(length > 0); assert(a); diff --git a/avahi-common/address.h b/avahi-common/address.h index 53f8d06..6315d31 100644 --- a/avahi-common/address.h +++ b/avahi-common/address.h @@ -91,7 +91,7 @@ char *avahi_address_snprint(char *ret_s, size_t length, const AvahiAddress *a); AvahiAddress *avahi_address_parse(const char *s, AvahiProtocol af, AvahiAddress *ret_addr); /** Generate the DNS reverse lookup name for an IPv4 or IPv6 address. */ -char* avahi_reverse_lookup_name(char *ret_s, size_t length, const AvahiAddress *a); +char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length); /** Map AVAHI_PROTO_xxx constants to Unix AF_xxx constants */ int avahi_proto_to_af(AvahiProtocol proto); diff --git a/avahi-common/alternative.h b/avahi-common/alternative.h index 4f0e58b..d171540 100644 --- a/avahi-common/alternative.h +++ b/avahi-common/alternative.h @@ -35,9 +35,9 @@ AVAHI_C_DECL_BEGIN char *avahi_alternative_host_name(const char *s); /** Find an alternative for the specified service name. If called with - an original service name, " #2" is appended. Afterwards the number - is increased on each call (i.e. "foo" becomes "foo #2" becomes - "foo #3" and so on.) avahi_free() the result. */ + * an original service name, " #2" is appended. Afterwards the number + * is increased on each call (i.e. "foo" becomes "foo #2" becomes "foo + * #3" and so on.) avahi_free() the result. */ char *avahi_alternative_service_name(const char *s); AVAHI_C_DECL_END -- cgit