diff options
author | Oxore <oxore@protonmail.com> | 2024-12-21 18:46:14 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2024-12-21 18:46:14 +0300 |
commit | d2fbe37d361d7853766ceff3221f322fc8bafcfa (patch) | |
tree | 297870560cbdc2fa69a5ee29c8a6c8a0a8443f6d | |
parent | 220e905af625ca8e433249e2cb74dfbaa2d252c3 (diff) |
Update optparse and add readme.txt for it
-rw-r--r-- | lib/optparse/optparse.h | 2 | ||||
-rw-r--r-- | lib/optparse/readme.txt | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/optparse/optparse.h b/lib/optparse/optparse.h index 8d6c0a9..9b7c7f8 100644 --- a/lib/optparse/optparse.h +++ b/lib/optparse/optparse.h @@ -288,7 +288,7 @@ optparse_from_long(const struct optparse_long *longopts, char *optstring) for (i = 0; !optparse_longopts_end(longopts, i); i++) { if (longopts[i].shortname && longopts[i].shortname < 127) { int a; - *p++ = longopts[i].shortname; + *p++ = (char)longopts[i].shortname; for (a = 0; a < (int)longopts[i].argtype; a++) *p++ = ':'; } diff --git a/lib/optparse/readme.txt b/lib/optparse/readme.txt new file mode 100644 index 0000000..065a78c --- /dev/null +++ b/lib/optparse/readme.txt @@ -0,0 +1 @@ +https://github.com/skeeto/optparse/tree/a86877ed301d89a4eb64feb08f23af395aede2ed |