mirror of https://github.com/Chizi123/dnscomp.git

Joel Grunbaum
2020-10-22 47fc92eabc296f9232de40ba33be9c2931613c57
reordered makefile for linking compatibility, cast const to remove warning
2 files modified
1 files added
15 ■■■■ changed files
.dir-locals.el 7 ●●●●● patch | view | raw | blame | history
Makefile 4 ●●●● patch | view | raw | blame | history
main.c 4 ●●●● patch | view | raw | blame | history
.dir-locals.el
New file
@@ -0,0 +1,7 @@
((nil .
      ((eval .
             (let ((root (projectile-project-root)))
               (setq-local company-clang-arguments
                           (list (concat "-I" root "include")))
               (setq-local flycheck-clang-include-path
                           (list (concat root "include"))))))))
Makefile
@@ -12,10 +12,10 @@
default: dnscomp
%.o: %c $(DEPS)
    $(CC) $(CFLAGS) -c -o $@ $<
    $(CC) -c -o $@ $< $(CFLAGS)
dnscomp: $(_OBJ)
    $(CC) $(CFLAGS) -o $@ $^
    $(CC) -o $@ $^ $(CFLAGS)
.PHONY: clean
clean:
main.c
@@ -65,10 +65,10 @@
        num_hosts = NUM_HOSTNAMES + added_hosts;
    }
    for (int i = added_hosts; i < num_hosts; i++) {
        add_hosts_server(&hosts, HOSTNAMES[i-added_hosts]);
        add_hosts_server(&hosts, (char*)HOSTNAMES[i-added_hosts]);
    }
    for (int i = 0; i < NUM_DNS; i++) {
        add_dns_server(&servers, DNS_SERVERS[i]);
        add_dns_server(&servers, (char*)DNS_SERVERS[i]);
    }
    test_dns();
    sort_servers(&servers);