summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-10 23:10:18 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:33 -0400
commit8c1ac426e15b27d2879afa26a500fd80010b33b9 (patch)
tree088c61dc5c7ad2eb069d1f2422a819579a9ae39e /src/misc
parentcf7db2427f99d784f3d27a4036c1abf41c61db87 (diff)
downloadmusl-8c1ac426e15b27d2879afa26a500fd80010b33b9.tar.gz
declare __getopt_msg in stdio_impl.h
it's not ideal, but the function is essentially an extended stdio function specialized to getopt's needs. the only reason it exists is avoiding pulling printf code into every program using getopt.
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/getopt_long.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/misc/getopt_long.c b/src/misc/getopt_long.c
index ddcef949..6949ab1c 100644
--- a/src/misc/getopt_long.c
+++ b/src/misc/getopt_long.c
@@ -5,6 +5,7 @@
#include <getopt.h>
#include <stdio.h>
#include <string.h>
+#include "stdio_impl.h"
extern int __optpos, __optreset;
@@ -18,8 +19,6 @@ static void permute(char *const *argv, int dest, int src)
av[dest] = tmp;
}
-void __getopt_msg(const char *, const char *, const char *, size_t);
-
static int __getopt_long_core(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly);
static int __getopt_long(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx, int longonly)