Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 5bbf61d

Browse files
author
Jaakko Kukkohovi
committed
Change bitfields to unsigned (int)
1 parent 0211992 commit 5bbf61d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nsdl-c/sn_nsdl_lib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ typedef struct sn_nsdl_static_resource_parameters_ {
146146
uint16_t resourcelen; /**< 0 if dynamic resource, resource information in static resource */
147147
bool external_memory_block:1; /**< 0 means block messages are handled inside this library,
148148
otherwise block messages are passed to application */
149-
uint8_t mode:2; /**< STATIC etc.. */
149+
unsigned mode:2; /**< STATIC etc.. */
150150
bool free_on_delete:1; /**< 1 if struct is dynamic allocted --> to be freed */
151151
} sn_nsdl_static_resource_parameters_s;
152152

@@ -165,10 +165,10 @@ typedef struct sn_nsdl_resource_parameters_ {
165165
#endif
166166
ns_list_link_t link;
167167
uint16_t coap_content_type; /**< CoAP content type */
168-
uint8_t access:4; /**< Allowed operation mode, GET, PUT, etc,
168+
unsigned access:4; /**< Allowed operation mode, GET, PUT, etc,
169169
TODO! This should be in static struct but current
170170
mbed-client implementation requires this to be changed at runtime */
171-
uint8_t registered:2; /**< Is resource registered or not */
171+
unsigned registered:2; /**< Is resource registered or not */
172172
bool publish_uri:1; /**< 1 if resource to be published to server */
173173
bool free_on_delete:1; /**< 1 if struct is dynamic allocted --> to be freed */
174174
bool observable:1; /**< Is resource observable or not */

0 commit comments

Comments
 (0)