From d89b795b474e538f8466c5867aafa25b130a84c6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 5 Oct 2017 20:52:19 +0200 Subject: Makefile: clang now builds the kernel, so use scan-build Also add little stub for coccinelle and clean up semicolon issue it found. --- src/tools/Makefile | 3 --- src/tools/config.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/tools') diff --git a/src/tools/Makefile b/src/tools/Makefile index 1407de4..01f873c 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -80,9 +80,6 @@ install: wg @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \ install -v -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -m 0644 -v wg-quick@.service "$(DESTDIR)$(SYSTEMDUNITDIR)/wg-quick@.service" -check: clean - CFLAGS=-g scan-build --view --keep-going $(MAKE) wg - help: @cat INSTALL diff --git a/src/tools/config.c b/src/tools/config.c index 0d8daeb..9f3f990 100644 --- a/src/tools/config.c +++ b/src/tools/config.c @@ -223,7 +223,7 @@ static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **la if (!mutable) { perror("strdup"); return false; - }; + } peer->flags |= WGPEER_REPLACE_ALLOWEDIPS; if (!strlen(value)) { free(mutable); -- cgit v1.2.3-59-g8ed1b