diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-24 21:56:07 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-24 21:56:07 +0100 |
commit | d5d3b38df8700deced52e66769d692afde6a2350 (patch) | |
tree | 85239e67e403c2e6ebbcb6d85e7b90effbe28e44 | |
parent | 7b84db2ca8cd05b7e3c9d204b0d9f20075197490 (diff) |
The 3rd field in a struct option is a pointer
-rw-r--r-- | make.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,9 +49,9 @@ main(int argc, char **argv) int opt; cmd_t c = {0}; struct option longopts[] = { - {"debug", no_argument, 0, 'd'}, - {"no-pcre", no_argument, 0, 'P'}, - {nullptr, 0, 0, 0 }, + {"debug", no_argument, nullptr, 'd'}, + {"no-pcre", no_argument, nullptr, 'P'}, + {nullptr, 0, nullptr, 0 }, }; cbsinit(argc, argv); |