summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-24 23:56:34 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-24 23:56:34 +0000
commit3073103812f0ea376582eb0ff1479945a847b361 (patch)
treee9b7fbc96b6866747ef7b856afa863b88e409a65 /avahi-daemon/main.c
parent5c0f7327451ba44f43aaaf28816c7ed172128ccc (diff)
* rename all limit defs so that they end with _MAX
* fix some minor typos git-svn-id: file:///home/lennart/svn/public/avahi/trunk@863 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon/main.c')
-rw-r--r--avahi-daemon/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c
index 0e7bbf4..cf87e23 100644
--- a/avahi-daemon/main.c
+++ b/avahi-daemon/main.c
@@ -130,9 +130,9 @@ static int load_resolv_conf(const DaemonConfig *c) {
goto finish;
}
- resolv_conf = avahi_new0(char*, AVAHI_MAX_WIDE_AREA_SERVERS+1);
+ resolv_conf = avahi_new0(char*, AVAHI_WIDE_AREA_SERVERS_MAX+1);
- while (!feof(f) && i < AVAHI_MAX_WIDE_AREA_SERVERS) {
+ while (!feof(f) && i < AVAHI_WIDE_AREA_SERVERS_MAX) {
char ln[128];
char *p;
@@ -204,11 +204,11 @@ static void remove_dns_server_entry_groups(void) {
}
static void update_wide_area_servers(void) {
- AvahiAddress a[AVAHI_MAX_WIDE_AREA_SERVERS];
+ AvahiAddress a[AVAHI_WIDE_AREA_SERVERS_MAX];
unsigned n = 0;
char **p;
- for (p = resolv_conf; *p && n < AVAHI_MAX_WIDE_AREA_SERVERS; p++) {
+ for (p = resolv_conf; *p && n < AVAHI_WIDE_AREA_SERVERS_MAX; p++) {
if (!avahi_address_parse(*p, AVAHI_PROTO_UNSPEC, &a[n]))
avahi_log_warn("Failed to parse address '%s', ignoring.", *p);
else
@@ -987,7 +987,7 @@ int main(int argc, char *argv[]) {
/** Parent **/
if ((ret = daemon_retval_wait(20)) < 0) {
- avahi_log_error("Could not recieve return value from daemon process.");
+ avahi_log_error("Could not receive return value from daemon process.");
goto finish;
}