Introduction
Introduction Statistics Contact Development Disclaimer Help
Remember to call freeifaddrs() - smdev - suckless mdev
git clone git://git.suckless.org/smdev
Log
Files
Refs
README
LICENSE
---
commit e31c4112308c12cc8b4a88f1910b6996a6053c43
parent eed577a75f4e9ce9658cd83d729a561e18b39b70
Author: sin <[email protected]>
Date: Thu, 4 Sep 2014 15:11:24 +0100
Remember to call freeifaddrs()
Change return value to void.
Diffstat:
M smdev.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/smdev.c b/smdev.c
@@ -61,7 +61,7 @@ static int createdev(struct event *ev);
static int doevent(struct event *ev);
static int craftev(char *sysfspath);
static void populatedev(const char *path);
-static int ifrename(void);
+static void ifrename(void);
static void
usage(void)
@@ -396,7 +396,7 @@ populatedev(const char *path)
}
}
-static int
+static void
ifrename(void)
{
struct ifaddrs *ifas, *ifa;
@@ -430,7 +430,6 @@ ifrename(void)
}
}
}
-
+ freeifaddrs(ifas);
close(sd);
- return 0;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.