X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-dnsconfd%2Fmain.c;h=078efc9adeaabede679e8c855a5fc72e8e00662e;hb=4ddfb3cc4ac10efff11fc58693ae2aacf592fb73;hp=56cbad879997645b030be508079445d1f2a5051c;hpb=519c8939aa6d436c8ed48bb0f390e9971676928f;p=catta diff --git a/avahi-dnsconfd/main.c b/avahi-dnsconfd/main.c index 56cbad8..078efc9 100644 --- a/avahi-dnsconfd/main.c +++ b/avahi-dnsconfd/main.c @@ -257,7 +257,7 @@ static void set_env(const char *name, const char *value) { if (strlen(*e) < l+1) continue; - if (strncmp(*e, name, l) != 0 || *e[l] != '=') + if (strncmp(*e, name, l) != 0 || (*e)[l] != '=') continue; /* We simply free the record, sicne we know that we created it previously */ @@ -400,7 +400,7 @@ static void help(FILE *f, const char *argv0) { static int parse_command_line(int argc, char *argv[]) { int c; - static const struct option const long_options[] = { + static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "daemonize", no_argument, NULL, 'D' }, { "kill", no_argument, NULL, 'k' },