From fc8e4837a936bb1b4bd19bdd54660878b3efe02c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 18 Apr 2010 12:10:30 +0000 Subject: Add const keyword to the demo function parameters where possible. --- Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c') diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c index 9308e122d7..79cfc0decc 100644 --- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c +++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c @@ -44,7 +44,7 @@ * * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum */ -uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize) +uint8_t Printer_SendData(const void* const PrinterCommands, const uint16_t CommandSize) { uint8_t ErrorCode; @@ -74,7 +74,7 @@ uint8_t Printer_SendData(void* PrinterCommands, uint16_t CommandSize) * * \return A value from the USB_Host_SendControlErrorCodes_t enum */ -uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize) +uint8_t Printer_GetDeviceID(char* DeviceIDString, const uint16_t BufferSize) { uint8_t ErrorCode = HOST_SENDCONTROL_Successful; uint16_t DeviceIDStringLength = 0; @@ -124,7 +124,7 @@ uint8_t Printer_GetDeviceID(char* DeviceIDString, uint16_t BufferSize) * * \return A value from the USB_Host_SendControlErrorCodes_t enum */ -uint8_t Printer_GetPortStatus(uint8_t* PortStatus) +uint8_t Printer_GetPortStatus(uint8_t* const PortStatus) { USB_ControlRequest = (USB_Request_Header_t) { -- cgit v1.2.3