mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
remove clang compiler warnings
This commit is contained in:
parent
7b8155302a
commit
dea3a103e5
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue