From af7d73c7ab76ad81fed78b7f5c024daf1af87d9d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 14 Jan 2009 01:56:15 +0000 Subject: Fix a few compiler warnings around implicit conversion or extra ";". svn path=/branches/BRANCH_6-3/; revision=5261 --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 70e99ba9..0b0d5791 100644 --- a/interface.c +++ b/interface.c @@ -418,7 +418,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo) GT_("get_ifinfo: sysctl (iflist estimate) failed")); exit(1); } - if ((buf = malloc(needed)) == NULL) + if ((buf = (char *)malloc(needed)) == NULL) { report(stderr, GT_("get_ifinfo: malloc failed")); @@ -736,5 +736,5 @@ int interface_approve(struct hostdata *hp, flag domonitor) #endif /* CAN_MONITOR */ #ifndef have_interface_init -void interface_init(void) {}; +void interface_init(void) {} #endif -- cgit v1.2.3