Added missing const for dll names strings
authoretisserant
Wed, 18 Jun 2008 10:57:30 +0200
changeset 480 d0d76932ad74
parent 479 92891f53630b
child 481 9dd36e4453ae
Added missing const for dll names strings
drivers/unix/unix.c
drivers/win32/win32.cpp
include/unix/canfestival.h
include/win32/canfestival.h
--- a/drivers/unix/unix.c	Mon Jun 09 11:13:45 2008 +0200
+++ b/drivers/unix/unix.c	Wed Jun 18 10:57:30 2008 +0200
@@ -91,7 +91,7 @@
  * @param driver_name String containing driver's dynamic library name
  * @return Library handle
  */
-LIB_HANDLE LoadCanDriver(char* driver_name)
+LIB_HANDLE LoadCanDriver(const char* driver_name)
 {
 	LIB_HANDLE handle = NULL;
 	char *error;
--- a/drivers/win32/win32.cpp	Mon Jun 09 11:13:45 2008 +0200
+++ b/drivers/win32/win32.cpp	Wed Jun 18 10:57:30 2008 +0200
@@ -122,7 +122,7 @@
 
 driver_procs s_driver_procs;
 
-LIB_HANDLE LoadCanDriver(char* driver_name)
+LIB_HANDLE LoadCanDriver(const char* driver_name)
    {
 		return s_driver_procs.load_canfestival_driver((LPCTSTR)driver_name);
    }
--- a/include/unix/canfestival.h	Mon Jun 09 11:13:45 2008 +0200
+++ b/include/unix/canfestival.h	Wed Jun 18 10:57:30 2008 +0200
@@ -17,7 +17,7 @@
 typedef void* LIB_HANDLE;
 
 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
-LIB_HANDLE LoadCanDriver(char* driver_name);
+LIB_HANDLE LoadCanDriver(const char* driver_name);
 UNS8 canSend(CAN_PORT port, Message *m);
 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
 int canClose(CO_Data * d);
--- a/include/win32/canfestival.h	Mon Jun 09 11:13:45 2008 +0200
+++ b/include/win32/canfestival.h	Wed Jun 18 10:57:30 2008 +0200
@@ -32,7 +32,7 @@
 typedef HINSTANCE LIB_HANDLE;
 
 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
-LIB_HANDLE LoadCanDriver(char* driver_name);
+LIB_HANDLE LoadCanDriver(const char* driver_name);
 UNS8 canSend(CAN_PORT port, Message *m);
 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
 int canClose(CO_Data * d);