Makefile: clang now builds the kernel, so use scan-build
Also add little stub for coccinelle and clean up semicolon issue it found. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
e95fcccb4d
commit
38ac0ff08e
|
@ -80,9 +80,6 @@ install: wg
|
||||||
@[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \
|
@[ "$(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"
|
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:
|
help:
|
||||||
@cat INSTALL
|
@cat INSTALL
|
||||||
|
|
||||||
|
|
|
@ -223,7 +223,7 @@ static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **la
|
||||||
if (!mutable) {
|
if (!mutable) {
|
||||||
perror("strdup");
|
perror("strdup");
|
||||||
return false;
|
return false;
|
||||||
};
|
}
|
||||||
peer->flags |= WGPEER_REPLACE_ALLOWEDIPS;
|
peer->flags |= WGPEER_REPLACE_ALLOWEDIPS;
|
||||||
if (!strlen(value)) {
|
if (!strlen(value)) {
|
||||||
free(mutable);
|
free(mutable);
|
||||||
|
|
Loading…
Reference in a new issue