diff --git a/Makefile b/Makefile index 266e3ec..84097ae 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,6 @@ LIBICMP_SRCS = $(shell find $(LIBICMP_DIR)/src -type f -name '*.c' 2>/dev/null) LIBICMP_HEADERS = $(wildcard $(LIBICMP_DIR)/includes/*.h) endif -# Extra link flags -LDFLAGS += -lm - # Build Directories OBJ_DIR = build OBJS = $(SRCS:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) diff --git a/configure b/configure index 5553136..7a86078 100755 --- a/configure +++ b/configure @@ -529,6 +529,9 @@ generate_build_mk() { fi fi + # Math library (required for stats mdev) + ldflags="$ldflags -lm" + # User-provided flags if [ -n "$USER_CFLAGS" ]; then cflags="$cflags $USER_CFLAGS" diff --git a/src/output/flood.c b/src/output/flood.c index 49e63f4..4324de3 100644 --- a/src/output/flood.c +++ b/src/output/flood.c @@ -5,11 +5,11 @@ void ping_output_flood_dot(void) { - write(1, ".", 1); + (void)write(1, ".", 1); } void ping_output_flood_erase(void) { - write(1, "\b \b", 3); + (void)write(1, "\b \b", 3); }