]> granicus.if.org Git - procps-ng/commit
top: make rcfile duplicate fields check more efficient
authorJim Warner <james.warner@comcast.net>
Tue, 12 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Jun 2018 12:03:56 +0000 (22:03 +1000)
commit291d98ee5036567f93d21bc11142b0a7e2ee70ae
treebfd40ba41bf2650e5fbde9bf4aaa37e651fad46a
parent949a3c9c2ee1e49169cf96b3ea2284c188b7da9e
top: make rcfile duplicate fields check more efficient

Jeeze, there was no need to employ *both* strchr() and
strrchr() when ensuring fields hadn't been duplicated.

So let's avoid one of those function calls completely.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c