Thread (5 messages) flat view 5 messages, 3 authors, 2021-09-28

Re: [PATCH v2] iplink_rmnet: Allow passing IFLA_RMNET_FLAGS

From: Alex Elder <hidden>
Date: 2021-09-27 22:44:37

On 9/27/21 8:48 AM, David Ahern wrote:
quoted
  		} else if (matches(*argv, "help") == 0) {
  			explain();
  			return -1;
use strcmp for new options. Also, please use 'csum' instead of 'chksum'
in the names. csum is already widely used in ip commands.
On the csum remark, I agree completely.

On the other:  Are you saying to use strcmp() instead of
matches()?

That seems strange to me because matches() is used *much*
more often than strcmp(), and handles an empty *argv
differently.

I don't disagree with your suggested change, but upon
looking at the other code it surprises me a bit.  Can
you provide a little more explanation?  If you mean
something else, please clarify.  Thanks.

					-Alex
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help