projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
output: Add null sentinel automatically to parse_enum() arguments.
[pspp]
/
src
/
output
/
ascii.c
diff --git
a/src/output/ascii.c
b/src/output/ascii.c
index 692f7f4d421bbfae5f64bc44bfb5c12e015a21a7..d581675fe37d99bf7f63cfb6d2332b9c0b5b1b3e 100644
(file)
--- a/
src/output/ascii.c
+++ b/
src/output/ascii.c
@@
-386,8
+386,7
@@
ascii_create (struct file_handle *fh, enum settings_output_devices device_type,
? "unicode" : "ascii");
enum { BOX_ASCII, BOX_UNICODE } box = parse_enum (opt (o, "box", default_box),
"ascii", BOX_ASCII,
? "unicode" : "ascii");
enum { BOX_ASCII, BOX_UNICODE } box = parse_enum (opt (o, "box", default_box),
"ascii", BOX_ASCII,
- "unicode", BOX_UNICODE,
- NULL_SENTINEL);
+ "unicode", BOX_UNICODE);
static const struct render_ops ascii_render_ops = {
.draw_line = ascii_draw_line,
static const struct render_ops ascii_render_ops = {
.draw_line = ascii_draw_line,