netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=0bcff306aadab8d4489ac171e0b72138d0424acc

commit 0bcff306aadab8d4489ac171e0b72138d0424acc
Author: Alastair Poole <nets...@gmail.com>
Date:   Fri Apr 23 09:54:58 2021 +0100

    build: fix on openbsd
---
 src/bin/system/machine/network.bogox | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/bin/system/machine/network.bogox 
b/src/bin/system/machine/network.bogox
index a864f83..dc4bd83 100644
--- a/src/bin/system/machine/network.bogox
+++ b/src/bin/system/machine/network.bogox
@@ -92,9 +92,6 @@ _openbsd_generic_network_status(int *n)
         if (!LINK_STATE_IS_UP(ifi->ifi_link_state))
           continue;
 
-        net_iface_t *iface = malloc(sizeof(net_iface_t));
-        if (!iface) return NULL;
-
         net_iface_t *iface = malloc(sizeof(net_iface_t));
         if (iface)
           {

-- 


Reply via email to