-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
General tidy of Netutils module #1599
Conversation
Use `const` qualifier where appropriate Use `unsigned` instead of `int` where appropriate Replace commented-out code with conditional compilation Refactor `debugPrintTcpList`
Remove double carriage returns, add PCB type as parameter to `debugPrintTcp()`
|
|
||
// Debug | ||
static void debugPrintTcpList(); | ||
|
||
private: | ||
#ifdef FIX_NETWORK_ROUTING |
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.
Since FIX_NETWORK_ROUTING
is not defined by default the current behaviour will be changed, right? Or I am missing something?
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.
Should be the same - see previous implemention of FixNetworkRouting()
function (should be fixNetworkRouting()
?) All commented out and just returned true
.
I haven't dug into the purpose of this at all - if it was only required for an old version of LWIP then can probably just delete it.
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.
Ok, the current change looks good then.
@mikee47 Do you want to fix those issues: https://app.codacy.com/app/slaff2/SmingOfficial/commit?cid=320437732#newIssuesView ?
|
@slaff My bad, fixed. How com Codacy didn't pick this up before merge? |
Use
const
qualifier where appropriateUse
unsigned
instead ofint
where appropriateReplace commented-out code with conditional compilation
Refactor
debugPrintTcpList