]> granicus.if.org Git - procps-ng/commitdiff
watch: fix 8bit regression
authorCraig Small <csmall@enc.com.au>
Sat, 9 Jul 2016 03:27:23 +0000 (13:27 +1000)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jul 2016 05:00:09 +0000 (15:00 +1000)
As part of the fix to truncate the command in non-8bit, watch had
the function for output_header changed (much for scope cleanliness
and cohesiveness than anything; so I'm going to blame Meyer)...

Anyhow the 8bit enabled version did not have that update which
meant watch failed to compile. Thanks to @asavah for issue #37
and the patch.

References:
 commit 5a40c7970d8185fcf322575de9fed69d4cdedd93

watch.c

diff --git a/watch.c b/watch.c
index 38bba1c2e0b86eb4092f14a0518f2a61936e3cf7..7d42223380f08d1f890be9063f2ee200fc5aefb1 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -823,7 +823,7 @@ int main(int argc, char *argv[])
 
                if (show_title)
 #ifdef WITH_WATCH8BIT
-                       output_header(wcommand, wcommand_columns, wcommand_characters, interval);
+                       output_header(wcommand, wcommand_characters, interval);
 #else
                        output_header(command, interval);
 #endif /* WITH_WATCH8BIT */