From: Masatake YAMATO Date: Sat, 28 Jan 2023 03:09:02 +0000 (+0900) Subject: lsfd: use skip_space() X-Git-Tag: v2.39-rc1~96^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4658bfb1e3ea0d36741b2b23a8d74441f0377356;p=thirdparty%2Futil-linux.git lsfd: use skip_space() Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 748aa2c35b..9472b9c2b5 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -600,8 +600,7 @@ static bool L3_verify_initial_line(const char *line) line += 2; /* Skip white spaces. */ - while (*line == ' ') - line++; + line = skip_space(line); return (strncmp(line, "sl", 2) == 0); }