cc-1164 cc: WARNING File = registry/regfio.c, Line = 202 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "header", ps, depth, file->header, sizeof( file->header )) ) ^ cc-1164 cc: WARNING File = registry/regfio.c, Line = 264 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "header", ps, depth, hbin->header, sizeof( hbin->header )) ) ^ cc-1164 cc: WARNING File = registry/regfio.c, Line = 313 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "header", ps, depth, nk->header, sizeof( nk->header )) ) ^ (and many more)
I think several of the struct's defined in include/regfio.h should have their element "header" defined as a uint8 type.
Additional: cc-1164 cc: WARNING File = registry/regfio.c, Line = 374 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "name", ps, depth, nk->keyname, name_length) ) ^ cc-1164 cc: WARNING File = registry/regfio.c, Line = 773 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "name", ps, depth, vk->valuename, name_length ) ) ^ cc-1164 cc: WARNING File = registry/regfio.c, Line = 1051 Argument of type "char *" is incompatible with parameter of type "unsigned char *". if ( !prs_uint8s( True, "header", ps, 0, header, REC_HDR_SIZE ) ) ^
nk->keyname and vk->valuename are used in strlen() and cannot cleanly become "uint8".
I'm just going to cast these to uint8* as needed. The cast is ok and should quiet the compiler some.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.