]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r313477:
authorgarga <garga@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 Feb 2017 09:19:29 +0000 (09:19 +0000)
committergarga <garga@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 16 Feb 2017 09:19:29 +0000 (09:19 +0000)
commit2ebca83c9900b8821d93709648ec07089c57257d
tree32dbaa8606496e44d0264a8e56250de1072d0c89
parentf070e69501b2016afc67dabee43217cb9d800e2c
MFC r313477:

Cleanup on usr.sbin/arp/arp.c

* 'blackhole' and 'reject' are mutually exclusive, replace printf() by errx()
  when both are selected.
* 'trail' option is no longer supported since first import of arp from 4.4BSD.
  XXX message was added 13 years ago in r128192. I believe it's time to remove
  it.
* Use warnx() to print some informative messages instead of printf()
* Replace strncmp() by strcmp() when validating parameters and exit when invalid
  parameter is found

Reviewed by: allanjude, vangyzen, cem
Approved by: allanjude
MFC after: 1 week
Sponsored by: Rubicon Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D9504

git-svn-id: svn://svn.freebsd.org/base/stable/10@313803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/arp/arp.c