diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-27 15:16:10 +0200 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-23 09:42:54 +0100 |
commit | 4e337206b5ce0057a1330ed8e281a2b37a3bf8bb (patch) | |
tree | 26d8721ae341636dce7ab90a0651ba0e21a4728a | |
parent | 78e17405d8437a31065ccf4477f5eacb7327ab90 (diff) | |
download | busybox-w32-4e337206b5ce0057a1330ed8e281a2b37a3bf8bb.tar.gz busybox-w32-4e337206b5ce0057a1330ed8e281a2b37a3bf8bb.tar.bz2 busybox-w32-4e337206b5ce0057a1330ed8e281a2b37a3bf8bb.zip |
man: fix compiler warning about a const -> non-const cast
In b25a7c28a (mingw32: add man, 2012-06-26), the next_path_sep() call
was introduced. As we pass in a non-const parameter, it is safe to cast
the result back to a non-const pointer, too.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r-- | miscutils/man.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/man.c b/miscutils/man.c index 68a75c6d7..fb96cae02 100644 --- a/miscutils/man.c +++ b/miscutils/man.c | |||
@@ -201,7 +201,7 @@ static char **add_MANPATH(char **man_path_list, int *count_mp, char *path) | |||
201 | char **path_element; | 201 | char **path_element; |
202 | 202 | ||
203 | #if ENABLE_PLATFORM_MINGW32 | 203 | #if ENABLE_PLATFORM_MINGW32 |
204 | next_path = next_path_sep(path); | 204 | next_path = (char *)next_path_sep(path); |
205 | #else | 205 | #else |
206 | next_path = strchr(path, ':'); | 206 | next_path = strchr(path, ':'); |
207 | #endif | 207 | #endif |