Daiki Kato / DhcpServer_mbed-os

Fork of DhcpServer by Daiki Kato

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Fri Jun 23 11:44:52 2017 +0000
Parent:
2:4a34731d231e
Child:
4:ac6385f9f2db
Commit message:
Add const attribute to constructor argument

Changed in this revision

DhcpServer.cpp Show annotated file Show diff for this revision Revisions of this file
DhcpServer.h Show annotated file Show diff for this revision Revisions of this file
--- a/DhcpServer.cpp	Tue Jun 20 10:32:37 2017 +0000
+++ b/DhcpServer.cpp	Fri Jun 23 11:44:52 2017 +0000
@@ -114,7 +114,7 @@
     }
 }
 
-DhcpServer::DhcpServer(NetworkInterface *net, char * name) :
+DhcpServer::DhcpServer(NetworkInterface *net, const char * name) :
  dhcp_server(net), dhcpThread(osPriorityNormal, (1024 * 8)) {
     uint32_t i;
     uint32_t len;
--- a/DhcpServer.h	Tue Jun 20 10:32:37 2017 +0000
+++ b/DhcpServer.h	Fri Jun 23 11:44:52 2017 +0000
@@ -17,7 +17,7 @@
      * @param net Common interface that is shared between network devices
      * @param name a pointer to a string containing the server name. (e.g."ServerName")
      */
-    DhcpServer(NetworkInterface *net, char * name);
+    DhcpServer(NetworkInterface *net, const char * name);
 
     /** Destructor
      *