@@ -13,7 +13,7 @@ typedef enum { MSB, LSB } e_padding_type;
1313 * @param[in] pval value used for padding
1414 * @return encoded field value
1515 */
16- static void * field_encode (const uint8_t * const value ,
16+ static void * field_encode (const uint8_t * value ,
1717 uint8_t length ,
1818 e_padding_type ptype ,
1919 uint8_t pval ) {
@@ -53,7 +53,7 @@ static void *field_encode(const uint8_t *const value,
5353 * @param[in] length its byte-length
5454 * @return the encoded value
5555 */
56- void * encode_uint (const uint8_t * const value , uint8_t length ) {
56+ void * encode_uint (const uint8_t * value , uint8_t length ) {
5757 // no length check here since it will be checked by field_encode
5858 return field_encode (value , length , MSB , 0x00 );
5959}
@@ -66,7 +66,7 @@ void *encode_uint(const uint8_t *const value, uint8_t length) {
6666 * @param[in] typesize the type size in bytes
6767 * @return the encoded value
6868 */
69- void * encode_int (const uint8_t * const value , uint8_t length , uint8_t typesize ) {
69+ void * encode_int (const uint8_t * value , uint8_t length , uint8_t typesize ) {
7070 uint8_t padding_value ;
7171
7272 if (length < 1 ) {
@@ -91,7 +91,7 @@ void *encode_int(const uint8_t *const value, uint8_t length, uint8_t typesize) {
9191 * @param[in] length its byte-length
9292 * @return the encoded value
9393 */
94- void * encode_bytes (const uint8_t * const value , uint8_t length ) {
94+ void * encode_bytes (const uint8_t * value , uint8_t length ) {
9595 // no length check here since it will be checked by field_encode
9696 return field_encode (value , length , LSB , 0x00 );
9797}
@@ -103,7 +103,7 @@ void *encode_bytes(const uint8_t *const value, uint8_t length) {
103103 * @param[in] length its byte-length
104104 * @return the encoded value
105105 */
106- void * encode_boolean (const bool * const value , uint8_t length ) {
106+ void * encode_boolean (const bool * value , uint8_t length ) {
107107 if (length != 1 ) // sanity check
108108 {
109109 apdu_response_code = APDU_RESPONSE_INVALID_DATA ;
@@ -119,7 +119,7 @@ void *encode_boolean(const bool *const value, uint8_t length) {
119119 * @param[in] length its byte-length
120120 * @return the encoded value
121121 */
122- void * encode_address (const uint8_t * const value , uint8_t length ) {
122+ void * encode_address (const uint8_t * value , uint8_t length ) {
123123 if (length != ADDRESS_LENGTH ) // sanity check
124124 {
125125 apdu_response_code = APDU_RESPONSE_INVALID_DATA ;
0 commit comments