This is to fix
svn commit: r312687 (ifnet: introduce event handlers for ifup/ifdown events)
Thank glebius for pointing this out:
"The network stuff shall not be added to sys/eventhandler.h"
This is to fix
svn commit: r312687 (ifnet: introduce event handlers for ifup/ifdown events)
Thank glebius for pointing this out:
"The network stuff shall not be added to sys/eventhandler.h"
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Just a couple style nits.
sys/net/if_var.h | ||
---|---|---|
407 ↗ | (On Diff #24465) | I would stick with the previous "ifup/ifdown" or go with "Interface up/down". I think "Interface up/ifdown" reads poorly. |
408 ↗ | (On Diff #24465) | It would be nice to have the 0/1 values for these two defines line up. In any case, it definitely seems like there is extraneous whitespace between "IFNET_EVENT_UP" and "0". |
sys/net/if_var.h | ||
---|---|---|
407 ↗ | (On Diff #24465) | I was trying to keep the consistency with Line 392, 395, 401 and 404. |
408 ↗ | (On Diff #24465) | Actually the 2 lines do line up. With "set list" in my Vim, the lines of the file net/if_var.h (rather than the patch with a leading + at the beginning of the lines) shows #define IFNET_EVENT_UP^I^I0$ ^I means a Tab. |
sys/net/if_var.h | ||
---|---|---|
407 ↗ | (On Diff #24465) | No objection to "Interface ..." but then I'd use "Interface up/down event" (the "if" in "ifdown" meaning "interface" is redundant). But, then, this is a nit. I don't strongly object to the patch as-is. |
408 ↗ | (On Diff #24465) | Hmmm, you are right; Phabricator is deceiving me. They don't line up at all in the diff display it shows me, but you are right that they do in code. Sorry about that. (Just a note that style(9) says to use just a single tab between name and value, which would mean they wouldn't line up. See similar situation at lines 185-186.) |
sys/net/if_var.h | ||
---|---|---|
407 ↗ | (On Diff #24465) | Oh... Sorry, my bad! I failed to understand what you meant -- it's late at night here and obviously my eyes or brain didn't work very good :-) |