From: Ruben Kerkhof Date: Thu, 3 Mar 2016 21:13:37 +0000 (+0100) Subject: Ceph: fix shadowing issue X-Git-Tag: collectd-5.5.2~39^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c0467fbc8d44e8038d7e7bfe4ba39c539740a4c2;p=collectd.git Ceph: fix shadowing issue --- diff --git a/src/ceph.c b/src/ceph.c index 251def9c..9c53a3e7 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -1097,7 +1097,7 @@ static int cconn_connect(struct cconn *io) fd = socket(PF_UNIX, SOCK_STREAM, 0); if(fd < 0) { - int err = -errno; + err = -errno; ERROR("ceph plugin: cconn_connect: socket(PF_UNIX, SOCK_STREAM, 0) " "failed: error %d", err); return err; @@ -1546,7 +1546,7 @@ static int cconn_main_loop(uint32_t request_type) } else { - int ret = cconn_handle_event(io); + ret = cconn_handle_event(io); if(ret) { WARNING("ceph plugin: cconn_handle_event(name=%s,"