diff options
author | Dean Camera <[email protected]> | 2010-04-18 12:10:30 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-04-18 12:10:30 +0000 |
commit | fc8e4837a936bb1b4bd19bdd54660878b3efe02c (patch) | |
tree | bc0cdb4c4a2e151f0aac4eb92a63f8d229bb82ff /Projects/Webserver/Lib/DHCPClientApp.c | |
parent | 55db57e1ede3c44a3b027cb442fa12e969b37f4b (diff) | |
download | qmk_firmware-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.tar.gz qmk_firmware-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.zip |
Add const keyword to the demo function parameters where possible.
Diffstat (limited to 'Projects/Webserver/Lib/DHCPClientApp.c')
-rw-r--r-- | Projects/Webserver/Lib/DHCPClientApp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/Webserver/Lib/DHCPClientApp.c b/Projects/Webserver/Lib/DHCPClientApp.c index 1af90ad199..9d085a7856 100644 --- a/Projects/Webserver/Lib/DHCPClientApp.c +++ b/Projects/Webserver/Lib/DHCPClientApp.c @@ -176,7 +176,7 @@ void DHCPClientApp_Callback(void) *
* \return Size in bytes of the created DHCP packet
*/
-static uint16_t DHCPClientApp_FillDHCPHeader(DHCP_Header_t* DHCPHeader, uint8_t DHCPMessageType, uip_udp_appstate_t* AppState)
+static uint16_t DHCPClientApp_FillDHCPHeader(DHCP_Header_t* const DHCPHeader, const uint8_t DHCPMessageType, uip_udp_appstate_t* AppState)
{
/* Erase existing packet data so that we start will all 0x00 DHCP header data */
memset(DHCPHeader, 0, sizeof(DHCP_Header_t));
@@ -239,7 +239,7 @@ static uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, *
* \return Boolean true if the option was found in the DHCP packet's options list, false otherwise
*/
-static bool DHCPClientApp_GetOption(uint8_t* DHCPOptionList, uint8_t Option, void* Destination)
+static bool DHCPClientApp_GetOption(const uint8_t* DHCPOptionList, const uint8_t Option, void* const Destination)
{
/* Look through the incoming DHCP packet's options list for the requested option */
while (*DHCPOptionList != DHCP_OPTION_END)
|