-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/soap: Continued internal refactoring #14602
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
Conversation
@@ -2114,7 +2118,7 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s | |||
WSDL_CACHE_PUT_N("wsdl", 4, out); | |||
WSDL_CACHE_PUT_1(WSDL_CACHE_VERSION,out); | |||
WSDL_CACHE_PUT_1(0,out); | |||
WSDL_CACHE_PUT_N(&t, sizeof(t), out); | |||
WSDL_CACHE_PUT_N((char*)&t, sizeof(t), out); |
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.
was the cast needed ?
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.
I like this change: Casting in the WSDL_CACHE_PUT_N
macro can hide mistakes. Casting here is more explicit.
LGTM apart from the TODO commit |
Move it to the one call site that requires it
Add const qualifiers to the variables at the call size Rename variables when they were shadowing a variable from the outer scope
As serializing something should not affect the value of it
The i seems to be a mistake as everything else uses j
464cae2
to
a4edb5a
Compare
Note that adding const to things like encodePtr doesn't make the pointer const. |
Right I was wondering about this, I'll probably do a follow-up when I have time. |
Follow-up to #14579 and commits that have been merged.