Author | Jamozed <[email protected]> |
Date | 2021-02-16 00:01:45 |
Commit | 371feb6ec59036c13a2e1d55f9d88da13d8bb920 |
Parent | c21fdfde41203a66d1ee534b4090c0250369e6c4 |
crc32: Remove redundant --gnu option
Diffstat
M | man/crc32.1 | | | 2 | -- |
M | src/crc32.c | | | 7 | ++----- |
2 files changed, 2 insertions, 7 deletions
diff --git a/man/crc32.1 b/man/crc32.1 index d419f5b..f29fa61 100644 --- a/man/crc32.1 +++ b/man/crc32.1 @@ -9,8 +9,6 @@ Compute and print a CRC-32 for each input file. The following options are supported: .IP "\fB--bsd\fR" 8 Use BSD style CRCs. -.IP "\fB--gnu\fR" 8 -Use GNU style CRCs. .IP "\fB--help\fR" 8 Display help information. .IP "\fB--version\fR" 8 diff --git a/src/crc32.c b/src/crc32.c index e89032a..75f9c95 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -1,4 +1,4 @@ -// crc32.c, version 1.1.0 +// crc32.c, version 1.1.1 // OMKOV cryptutils crc32 // Copyright (C) 2020, Jakob Wakeling // All rights reserved. @@ -37,13 +37,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. #include <stdint.h> #include <stdio.h> -#define VERSION "1.1.0" +#define VERSION "1.1.1" static struct lop lops[] = { { "help", ARG_NUL, 256 }, { "version", ARG_NUL, 257 }, { "bsd", ARG_NUL, 258 }, - { "gnu", ARG_NUL, 259 }, { NULL, 0, 0 } }; @@ -64,7 +63,6 @@ int main(int ac, char *av[]) { A0 = av[0]; case 256: { hlp(); return 0; } case 257: { ver(); return 0; } case 258: { form = 1; break; } - case 259: { form = 0; break; } default: { return 1; } } @@ -102,7 +100,6 @@ static void hlp(void) { puts("usage: crc32 [file...]\n"); puts("options:"); puts(" --bsd Use BSD style CRCs"); - puts(" --gnu Use GNU style CRCs"); puts(" --help Display help information"); puts(" --version Display version information"); return;