diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-23 12:45:19 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-23 12:45:19 +0000 |
commit | 04e65faa724cfa1cdd43042086fef4fc4631fa61 (patch) | |
tree | 180a68324e70042275571bf03295d5fbc926c12b /mmain.c | |
parent | 595003e4db851740b65c179dfac991e6874ef56f (diff) | |
download | mandoc-04e65faa724cfa1cdd43042086fef4fc4631fa61.tar.gz |
More in-file documentation and Linux-isation.
Moved mdoc_macros table definition into macro.c, where it belongs.
Diffstat (limited to 'mmain.c')
-rw-r--r-- | mmain.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -57,6 +57,8 @@ static int msg_warn(void *, int, int, #ifdef __linux__ extern int getsubopt(char **, char *const *, char **); +extern size_t strlcpy(char *, const char *, size_t); +extern size_t strlcat(char *, const char *, size_t); #endif @@ -106,7 +108,6 @@ mmain_getopt(struct mmain *p, int argc, char *argv[], size_t sz; extern int optind; - extern int optreset; sz = strlcpy(opts, "vW:", 32); assert(sz < 32); @@ -116,6 +117,8 @@ mmain_getopt(struct mmain *p, int argc, char *argv[], assert(sz < 32); } + optind = 1; + /* LINTED */ while (-1 != (c = getopt(argc, argv, opts))) switch (c) { |