diff options
author | Cyril Hrubis <chrubis@suse.cz> | 2014-09-24 16:34:35 +0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2014-09-24 16:34:35 +0200 |
commit | 4e2bab8415bfd5ddd552220203ed22c93a4617e5 (patch) | |
tree | 8c463b7507cee4f9bc63e336c37c34cd8a7ae83f /pan | |
parent | 8b35601743f74e3199cdd9139b9ff95d00d2833b (diff) |
Make use of NULL
Replace all (type *)0 with NULL
Created with coccinelle patch:
@@
type T;
@@
-(T*)0
+NULL
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'pan')
-rw-r--r-- | pan/ltp-pan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pan/ltp-pan.c b/pan/ltp-pan.c index f495ef6d6..4c1e9deb6 100644 --- a/pan/ltp-pan.c +++ b/pan/ltp-pan.c @@ -1024,7 +1024,7 @@ run_child(struct coll_entry *colle, struct tag_pgrp *active, int quiet_mode, * cmd directly. */ if (strpbrk(c_cmdline, "\"';|<>$\\")) { - execlp("sh", "sh", "-c", c_cmdline, (char *)0); + execlp("sh", "sh", "-c", c_cmdline, NULL); errlen = sprintf(errbuf, "pan(%s): execlp of '%s' (tag %s) failed. errno:%d %s", panname, c_cmdline, colle->name, errno, |