From: Davidlohr Bueso <dave@xxxxxxx> Date: Sun, 29 Jan 2012 15:22:41 +0100 We can save a few lines and use for() naturally instead. Signed-off-by: Davidlohr Bueso <dave@xxxxxxx> --- misc-utils/whereis.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 925cc93..eee4bf6 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -268,11 +268,7 @@ static void fillpath(void) return; pathcp = xstrdup(path); - for (tmp = pathcp; ; tmp = NULL) { - tok = strtok_r(tmp, ":", &key); - if (!tok) - break; - + for (tmp = pathcp; tok = strtok_r(tmp, ":", &key); tmp = NULL) { /* make sure we don't repeat the search path */ if (inpath(tok)) continue; -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html