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
minor - code readability HTTP CODES as defines && clear warnings #6539
Conversation
Hi @underhood , I liked what the PR you brought, without any doubt, the code will be more readable with these changes, but before we approve, I will ask you to change one thing that we missed in the previous PR, because I had a problem in my compiler and I could not detect it. As you can see below /home/thiago/Netdata/netdata/libnetdata/url/url.c: In function ‘url_decode_r’: It is necessary to cast the variable when we call utf8_check, but for these new code that you are bringing there is nothing to change. Thanks a lot! |
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.
Damn, we just got a conflict due to a different PR getting merged. Can you please rebase?
Yep, the URL rework PR also fixed the comp warning in url.c. Will do when i get home |
I kicked out that url.c change |
Summary
Just a minor code cleanup for better readability of code that I didn't want to include in UTF8 URL parser PR due to IMHO being unrelated
Component Name
libnetdata/server
Additional Info
No behavior change. Just code readability - something that annoyed me a bit when I was going trough code. (not all people keep all the codes in memory (besides 200/400/404))
Additionally one compiler warning fixed if compiling with
-Wpointer-sign