From 7dcfd657b8319616958265706b153c6f26a95360 Mon Sep 17 00:00:00 2001 From: vemax78 Date: Sun, 22 Sep 2013 22:28:35 +0200 Subject: [PATCH] Fix type --- src/binding/wifi/drivers/wifi_drivers.c | 4 ++-- src/binding/wifi/drivers/wifi_drivers.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/binding/wifi/drivers/wifi_drivers.c b/src/binding/wifi/drivers/wifi_drivers.c index fde44ca..012b763 100644 --- a/src/binding/wifi/drivers/wifi_drivers.c +++ b/src/binding/wifi/drivers/wifi_drivers.c @@ -59,7 +59,7 @@ void wifi_free_driver(void) { } /* */ -int wifi_create_device(int radioid, char* ifname, char* driver) { +int wifi_create_device(int radioid, const char* ifname, const char* driver) { int i; int length; int result = -1; @@ -83,7 +83,7 @@ int wifi_create_device(int radioid, char* ifname, char* driver) { if (!strcmp(driver, wifi_driver[i].ops->name)) { wifi_device_handle devicehandle; struct device_init_params params = { - .ifname = ifname + .ifname = (char*)ifname }; /* Device init */ diff --git a/src/binding/wifi/drivers/wifi_drivers.h b/src/binding/wifi/drivers/wifi_drivers.h index f22e64b..066f5ba 100644 --- a/src/binding/wifi/drivers/wifi_drivers.h +++ b/src/binding/wifi/drivers/wifi_drivers.h @@ -118,7 +118,7 @@ int wifi_init_driver(void); void wifi_free_driver(void); /* */ -int wifi_create_device(int radioid, char* ifname, char* driver); +int wifi_create_device(int radioid, const char* ifname, const char* driver); struct wifi_capability* wifi_get_capability_device(int radioid); /* Util functions */