- /* $Id: mmain.c,v 1.2 2009/02/23 07:09:13 kristaps Exp $ */
+ /* $Id: mmain.c,v 1.4 2009/02/23 15:38:20 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
#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
size_t sz;
extern int optind;
- extern int optreset;
sz = strlcpy(opts, "vW:", 32);
assert(sz < 32);
assert(sz < 32);
}
+ optind = 1;
+
/* LINTED */
while (-1 != (c = getopt(argc, argv, opts)))
switch (c) {
}
-__dead void
-mmain_exit(struct mmain *p, int code)
+dead_pre void
+mmain_exit(struct mmain *p, int code)
{
if (p->mdoc)