Fixed two minor issues detected by those flags.
AUTOMAKE_OPTIONS = foreign no-dependencies
+if COMPILER_IS_GCC
+AM_CFLAGS = -Wall -Werror
+endif
+
pkginclude_HEADERS = client.h
lib_LTLIBRARIES = libcollectdclient.la
#include <string.h>
#include <assert.h>
#include <errno.h>
+#include <math.h>
#include <netdb.h>
#include "client.h"
} /* }}} char *lcc_strdup */
__attribute__((nonnull (1, 2)))
-static char *lcc_strescape (char *dest, char *src, size_t dest_size) /* {{{ */
+static char *lcc_strescape (char *dest, const char *src, size_t dest_size) /* {{{ */
{
size_t dest_pos;
size_t src_pos;