From dea3a103e57176f54a7556f0c3331a623187cc52 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 5 Sep 2017 06:05:30 +0200 Subject: [PATCH] remove clang compiler warnings --- tools/uhyve-net.c | 4 ++-- tools/uhyve-net.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/uhyve-net.c b/tools/uhyve-net.c index 61c103957..bb8d08acb 100755 --- a/tools/uhyve-net.c +++ b/tools/uhyve-net.c @@ -104,7 +104,7 @@ int attach_linux_tap(const char *dev) { } //---------------------------------- GET MAC ----------------------------------------------// -const uint8_t* uhyve_get_mac(void) { +char* uhyve_get_mac(void) { return netinfo.mac_str; } @@ -163,7 +163,7 @@ int uhyve_set_mac(void) { } //-------------------------------------- SETUP NETWORK ---------------------------------------------// -int uhyve_net_init(char *netif) +int uhyve_net_init(const char *netif) { if (netif == NULL) { err(1, "ERROR: no netif defined\n"); diff --git a/tools/uhyve-net.h b/tools/uhyve-net.h index 29515ab8e..bd3bb054f 100755 --- a/tools/uhyve-net.h +++ b/tools/uhyve-net.h @@ -57,7 +57,7 @@ typedef struct { int status; } __attribute__((packed)) uhyve_netstat_t; -int uhyve_net_init(char *hermit_netif); -const uint8_t* uhyve_get_mac(void); +int uhyve_net_init(const char *hermit_netif); +char* uhyve_get_mac(void); #endif