projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1807 from matteocontrini/master
[collectd.git]
/
src
/
netlink.c
diff --git
a/src/netlink.c
b/src/netlink.c
index
c8905d5
..
5c3a9f0
100644
(file)
--- a/
src/netlink.c
+++ b/
src/netlink.c
@@
-244,7
+244,7
@@
static int update_iflist (struct ifinfomsg *msg, const char *dev)
{
char **temp;
{
char **temp;
- temp =
(char **)
realloc (iflist, (msg->ifi_index + 1) * sizeof (char *));
+ temp = realloc (iflist, (msg->ifi_index + 1) * sizeof (char *));
if (temp == NULL)
{
ERROR ("netlink plugin: update_iflist: realloc failed.");
if (temp == NULL)
{
ERROR ("netlink plugin: update_iflist: realloc failed.");