Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DhcpServer by
Revision 3:bdea854c0ec8, committed 2017-06-23
- 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
*
