X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flibcollectdclient%2Fclient.c;h=eaee9c0f7cb0f411d199a1cfc8051212fe15fa84;hb=7bab45b57d6ef99ae55c499c51478dd63c3b1397;hp=a97dc509e4d7ff7e94b491f28244ad9e9e1d10cc;hpb=9ad5eefaa9dcc557c9117f8692cec1792f7ac7f0;p=collectd.git diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index a97dc509..eaee9c0f 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -287,7 +287,7 @@ static int lcc_receive (lcc_connection_t *c, /* {{{ */ * 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);