From 87918040658f2fa9b1bf78f1f8f4f5c065a2e3a3 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 11 Feb 2017 20:23:26 +0000 Subject: misc: do not use plain 0 as NULL [smatch scan] text-utils/tailf.c:69:21: warning: Using plain integer as NULL pointer Since many 'struct option' has used zero as NULL make them more readable in same go by reindenting, and using named argument requirements. Reference: https://lwn.net/Articles/93577/ Signed-off-by: Sami Kerola --- text-utils/more.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text-utils/more.c') diff --git a/text-utils/more.c b/text-utils/more.c index 76ba24a17..ea881e8ed 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1481,7 +1481,7 @@ void do_shell(char *filename) putsout(shell_line); else { ttyin(cmdbuf, sizeof(cmdbuf) - 2, '!'); - expanded = 0; + expanded = NULL; rc = expand(&expanded, cmdbuf); if (expanded) { if (strlen(expanded) < sizeof(shell_line)) @@ -1634,7 +1634,7 @@ void execute(char *filename, char *cmd, ...) signal(SIGQUIT, SIG_IGN); if (catch_susp) signal(SIGTSTP, SIG_DFL); - while (wait(0) > 0) ; + while (wait(NULL) > 0) ; signal(SIGINT, end_it); signal(SIGQUIT, onquit); if (catch_susp) -- cgit v1.2.3-55-g7522