summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-07-24 09:06:15 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-07-24 09:06:15 +0100
commit669059aa19ec831e9a8afc008c978ea7806692e3 (patch)
tree12f971a681e20caf39918bc89b568cf1c509510f /compat
parente6facdcb0c5869d88f4a471b4ac8cd4399bcfc0f (diff)
Fix a warning, from Kosta Zertsekel.
Diffstat (limited to 'compat')
-rw-r--r--compat/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/getopt.c b/compat/getopt.c
index 03ad9e80..9cd3b3d2 100644
--- a/compat/getopt.c
+++ b/compat/getopt.c
@@ -94,7 +94,7 @@ BSDgetopt(int nargc, char *const *nargv, const char *ostr)
}
else { /* need an argument */
if (*place) /* no white space */
- BSDoptarg = place;
+ BSDoptarg = (char *)place;
else if (nargc <= ++BSDoptind) { /* no arg */
place = EMSG;
if (*ostr == ':')