Skip to content

Commit

Permalink
Replace u_char with unsigned char
Browse files Browse the repository at this point in the history
  • Loading branch information
Mico Micic committed Feb 8, 2024
1 parent b45e95a commit 2bcb78c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/clixon/clixon_xml_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int assign_namespace_element(cxobj *x0, cxobj *x1, cxobj *x1p);
int assign_namespace_body(cxobj *x0, cxobj *x1);
int xml_merge(cxobj *x0, cxobj *x1, yang_stmt *yspec, char **reason);
int yang_valstr2enum(yang_stmt *ytype, char *valstr, char **enumstr);
int yang_bitsstr2val(yang_stmt *ytype, char *bitsstr, u_char **snmpval, size_t *snmplen);
int yang_bitsstr2val(yang_stmt *ytype, char *bitsstr, unsigned char **snmpval, size_t *snmplen);
int yang_val2bitsstr(yang_stmt *ytype, unsigned char *snmpval, size_t snmplen, cbuf *cb);
int yang_enum2valstr(yang_stmt *ytype, char *enumstr, char **valstr);
int yang_enum2int(yang_stmt *ytype, char *enumstr, int32_t *val);
Expand Down
10 changes: 5 additions & 5 deletions lib/src/clixon_xml_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,10 +1669,10 @@ int yang_bits_pos(yang_stmt *ytype, char *bitstr, uint32_t *bitpos) {
* @see yang_val2bitsstr
*/
int
yang_bitsstr2val(yang_stmt *ytype,
char *bitsstr,
u_char **snmpval,
size_t *snmplen)
yang_bitsstr2val(yang_stmt *ytype,
char *bitsstr,
unsigned char **snmpval,
size_t *snmplen)
{
int retval = -1;
int i = 0;
Expand All @@ -1686,7 +1686,7 @@ yang_bitsstr2val(yang_stmt *ytype,

*snmplen = 0;

if ((buffer = calloc(CLIXON_BITS_POS_MAX / 8, sizeof(u_char))) == NULL){
if ((buffer = calloc(CLIXON_BITS_POS_MAX / 8, sizeof(unsigned char))) == NULL){
clixon_err(OE_UNIX, errno, "calloc");
goto done;
}
Expand Down

0 comments on commit 2bcb78c

Please sign in to comment.