summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d4510e)
raw | patch | inline | side by side (parent: 2d4510e)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 09:57:10 +0000 (10:57 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 09:57:10 +0000 (10:57 +0100) |
Fixed two minor issues detected by those flags.
src/libcollectdclient/Makefile.am | patch | blob | history | |
src/libcollectdclient/client.c | patch | blob | history |
index f96db631e54881608f7f17ef042defba957249ea..ca505603d77450d6790911535651b49a8df43a2d 100644 (file)
AUTOMAKE_OPTIONS = foreign no-dependencies
+if COMPILER_IS_GCC
+AM_CFLAGS = -Wall -Werror
+endif
+
pkginclude_HEADERS = client.h
lib_LTLIBRARIES = libcollectdclient.la
index f2c0a1e591ee021cd520c2752fdd63f5c7e49954..96b828ea0ceb6e082f30c90319c1b193a21eaba0 100644 (file)
#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;