Code

libcollectdclient: remove unneccesary cast
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 13:16:41 +0000 (15:16 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 13:16:41 +0000 (15:16 +0200)
src/libcollectdclient/client.c

index 8b5ac0bd490b711ae975f467665079f84837d211..26a59297d27aa39e3ea319711f32370e9a00bce5 100644 (file)
@@ -693,7 +693,7 @@ int lcc_getval (lcc_connection_t *c, lcc_identifier_t *ident, /* {{{ */
 
   if (ret_values_names != NULL)
   {
-    values_names = (char **) calloc (values_num, sizeof (*values_names));
+    values_names = calloc (values_num, sizeof (*values_names));
     if (values_names == NULL)
       BAIL_OUT (ENOMEM);
   }