-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.4] Update data types in codebase #1009
Conversation
c07c7ac
to
646bd3b
Compare
@rdmark, should we also consider changing: |
Sure, go for it. It seems Sonarcloud complains about this? |
include/wolfssl/wolfcrypt/settings.h
Outdated
@@ -1797,25 +1797,25 @@ extern void uITRON4_free(void *p) ; | |||
#define STRING_USER | |||
#define XSTRCASECMP(s1,s2) strcasecmp((s1),(s2)) | |||
#define XSTRCMP(s1,s2) strcmp((s1),(s2)) | |||
#define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr))) | |||
#define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPunsigned char *)(pstr))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this data type mean?
Also, this settings.h header is one that you wrote, or is it copied verbatim from wolfssl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted as find and replace substituted U_CHAR as well as u_char! Fixed. Settings.h copied verbatim from WolfSSL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Search-and-replace -- that explains it!
There are a handful more instances in the same settings.h that need to be reverted, I think. Please have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All done now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! Approved.
Looks good to me. Only question is the wolfcrypt header. I'm not sure what those data types are, and if it was me I'd leave them as-is. :) |
|
No description provided.