Skip to content
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

Merged
merged 4 commits into from
Jun 1, 2024
Merged

Conversation

dgsga
Copy link
Contributor

@dgsga dgsga commented May 19, 2024

No description provided.

@dgsga dgsga self-assigned this May 19, 2024
@dgsga dgsga force-pushed the dgsga-v2uint branch 6 times, most recently from c07c7ac to 646bd3b Compare May 19, 2024 19:20
@dgsga dgsga marked this pull request as ready for review May 19, 2024 19:23
@dgsga dgsga requested a review from rdmark as a code owner May 19, 2024 19:23
@dgsga
Copy link
Contributor Author

dgsga commented May 20, 2024

@rdmark, should we also consider changing:
u_short to unsigned short
u_long to unsigned long
u_char to unsigned char

@dgsga dgsga marked this pull request as draft May 20, 2024 09:20
@rdmark
Copy link
Member

rdmark commented May 20, 2024

Sure, go for it. It seems Sonarcloud complains about this?

@dgsga dgsga changed the title [2.4] Convert all u_int to ISO uint [2.4] Update data types in codebase Jun 1, 2024
@dgsga dgsga marked this pull request as ready for review June 1, 2024 10:12
@@ -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)))
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All done now!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers! Approved.

@rdmark
Copy link
Member

rdmark commented Jun 1, 2024

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. :)

Copy link

sonarcloud bot commented Jun 1, 2024

@dgsga dgsga merged commit 870738e into branch-netatalk-2-4 Jun 1, 2024
10 checks passed
@dgsga dgsga deleted the dgsga-v2uint branch June 1, 2024 13:02
dgsga added a commit that referenced this pull request Jun 3, 2024
dgsga added a commit that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants