summaryrefslogtreecommitdiffstats
path: root/libsmartcols/samples/tree.c
diff options
context:
space:
mode:
authorSami Kerola2017-03-10 20:50:14 +0100
committerSami Kerola2017-03-17 22:22:26 +0100
commit71f08e9706697b5ca001bc42325b574f0dea0923 (patch)
treeeba294f81c39c82d458a0425f64a9da19276e98e /libsmartcols/samples/tree.c
parentlibsmartcols: fix test variable shadowing (diff)
downloadkernel-qcow2-util-linux-71f08e9706697b5ca001bc42325b574f0dea0923.tar.gz
kernel-qcow2-util-linux-71f08e9706697b5ca001bc42325b574f0dea0923.tar.xz
kernel-qcow2-util-linux-71f08e9706697b5ca001bc42325b574f0dea0923.zip
tests: do not use plain 0 as NULL [smatch scan]
Likewise commit 87918040658f2fa9b1bf78f1f8f4f5c065a2e3a3. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libsmartcols/samples/tree.c')
-rw-r--r--libsmartcols/samples/tree.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libsmartcols/samples/tree.c b/libsmartcols/samples/tree.c
index c809b2d85..fcb175135 100644
--- a/libsmartcols/samples/tree.c
+++ b/libsmartcols/samples/tree.c
@@ -162,16 +162,16 @@ int main(int argc, char *argv[])
static const struct option longopts[] = {
- { "ascii", 0, 0, 'i' },
- { "csv", 0, 0, 'c' },
- { "list", 0, 0, 'l' },
- { "noheadings", 0, 0, 'n' },
- { "pairs", 0, 0, 'p' },
- { "json", 0, 0, 'J' },
- { "raw", 0, 0, 'r' },
- { "range-start",1, 0, 'S' },
- { "range-end", 1, 0, 'E' },
- { NULL, 0, 0, 0 },
+ { "ascii", 0, NULL, 'i' },
+ { "csv", 0, NULL, 'c' },
+ { "list", 0, NULL, 'l' },
+ { "noheadings", 0, NULL, 'n' },
+ { "pairs", 0, NULL, 'p' },
+ { "json", 0, NULL, 'J' },
+ { "raw", 0, NULL, 'r' },
+ { "range-start",1, NULL, 'S' },
+ { "range-end", 1, NULL, 'E' },
+ { NULL, 0, NULL, 0 },
};
setlocale(LC_ALL, ""); /* just to have enable UTF8 chars */