]> granicus.if.org Git - procps-ng/commit
top: make rcfile duplicate fields check more efficient
authorJim Warner <james.warner@comcast.net>
Tue, 19 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Jun 2018 11:25:17 +0000 (21:25 +1000)
commit775223a8174cdede123199a67372dc207a2dbdc2
tree3d2c7d73463d30e2354d5bc041acc91836f0b157
parent7e55bff63b07e203def50eb21da8b90f6e9b6c39
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