]> granicus.if.org Git - procps-ng/commitdiff
top: eliminate warnings for '-Wmisleading-indentation'
authorJim Warner <james.warner@comcast.net>
Thu, 13 Jan 2022 19:13:13 +0000 (13:13 -0600)
committerCraig Small <csmall@dropbear.xyz>
Mon, 17 Jan 2022 09:27:21 +0000 (20:27 +1100)
Reference(s):
. 01/08/22, newlib branch equivalent commit
commit 68995bee95d145f84c27849c47e4512da3f77a7e

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

index f4d1c70b8e9f34ba8175d93b249323db4f5bf168..a1f1629cea30b084ae5e12815da11c7e53a1e969 100644 (file)
--- a/top/top.h
+++ b/top/top.h
@@ -576,7 +576,8 @@ typedef struct WIN_t {
       const int _len = snprintf(_str, sizeof(_str), fmt, ## arg); \
       if (Batch) { \
          char *_eol = _str + (_len < 0 ? 0 : (size_t)_len >= sizeof(_str) ? sizeof(_str)-1 : (size_t)_len); \
-         while (_eol > _str && _eol[-1] == ' ') _eol--; *_eol = '\0'; putp(_str); } \
+         while (_eol > _str && _eol[-1] == ' ') _eol--; \
+         *_eol = '\0'; putp(_str); } \
       else if (Pseudo_row >= 0 && Pseudo_row < Screen_rows) { \
          char *_ptr = &Pseudo_screen[Pseudo_row++ * ROWMAXSIZ]; \
          if (!strcmp(_ptr, _str)) putp("\n"); \