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