summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2022-01-08 00:00:00 -0600
committerCraig Small <csmall@dropbear.xyz>2022-01-13 19:34:39 +1100
commit14281269f8a42de0d4d71b0ab7de643420d9bceb (patch)
treefb159455a523dd72da4558abb8906d527e57c095
parent44ca06f1a05b31880ca0ec4e59923a3255f5816d (diff)
downloadprocps-ng-14281269f8a42de0d4d71b0ab7de643420d9bceb.tar.gz
top: eliminate warnings for '-Wmisleading-indentation'
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--top/top.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/top/top.h b/top/top.h
index 20c4a7a..07919af 100644
--- a/top/top.h
+++ b/top/top.h
@@ -464,7 +464,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"); \