summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4cafc14)
raw | patch | inline | side by side (parent: 4cafc14)
author | Florian Forster <octo@collectd.org> | |
Wed, 8 Jul 2015 10:39:03 +0000 (12:39 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 8 Jul 2015 10:39:03 +0000 (12:39 +0200) |
src/daemon/common.c | patch | blob | history | |
src/libcollectdclient/client.c | patch | blob | history | |
src/libcollectdclient/network.c | patch | blob | history |
diff --git a/src/daemon/common.c b/src/daemon/common.c
index 068b9999c6fa7649986268a2707bbb993339970f..abe9a6e8471df65f7c8388d2699c936b96bd8880 100644 (file)
--- a/src/daemon/common.c
+++ b/src/daemon/common.c
}
assert (buffer[buffer_size - 1] == 0);
- return (strlen (buffer));
+ return ((int) strlen (buffer));
}
int strsubstitute (char *str, char c_from, char c_to)
index a97dc509e4d7ff7e94b491f28244ad9e9e1d10cc..eaee9c0f7cb0f411d199a1cfc8051212fe15fa84 100644 (file)
* beginning of the message. */
ptr = NULL;
errno = 0;
- res.status = strtol (buffer, &ptr, 0);
+ res.status = (int) strtol (buffer, &ptr, 0);
if ((errno != 0) || (ptr == &buffer[0]))
{
lcc_set_errno (c, errno);
index f76be5ba7cadeb976a1e84f33b36d2f8d09fef46..0539cd0c05266a9965ac522e4599b5fd5bf07bb4 100644 (file)
@@ -457,8 +457,8 @@ int lcc_server_set_interface (lcc_server_t *srv, char const *interface) /* {{{ *
/* else: Not a multicast interface. */
#if defined(SO_BINDTODEVICE)
- status = setsockopt (srv->fd, SOL_SOCKET, SO_BINDTODEVICE,
- interface, strlen (interface) + 1);
+ status = setsockopt (srv->fd, SOL_SOCKET, SO_BINDTODEVICE, interface,
+ (socklen_t) (strlen (interface) + 1));
if (status != 0)
return (-1);
#endif