aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/getsubopt.c
diff options
context:
space:
mode:
authorKim Kuparinen <kimi.h.kuparinen@gmail.com>2026-02-12 21:53:13 +0200
committerCorinna Vinschen <corinna@vinschen.de>2026-02-12 21:24:39 +0100
commit40740223dbd6ba344ce6f7d4d3ca734daf78103f (patch)
tree916435e27c496cbb3d2345d90b448fd3370f263a /newlib/libc/stdlib/getsubopt.c
parentcae4c32e1b7da82e8af6dfa715f4011e504595ac (diff)
downloadnewlib-github/master.zip
newlib-github/master.tar.gz
newlib-github/master.tar.bz2
Silence -Wold-style-definition warningsHEADgithub/mastergithub/mainmastermain
Hi, I noticed that there were a few warnings about old-style function definitions. I saw some other patches fixing the same warning, so this just continues on from them. Now everything compiles neatly on my machine at least :) Signed-off-by: Kim Kuparinen <kimi.h.kuparinen@gmail.com>
Diffstat (limited to 'newlib/libc/stdlib/getsubopt.c')
-rw-r--r--newlib/libc/stdlib/getsubopt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/getsubopt.c b/newlib/libc/stdlib/getsubopt.c
index 298624d..4f3bb83 100644
--- a/newlib/libc/stdlib/getsubopt.c
+++ b/newlib/libc/stdlib/getsubopt.c
@@ -45,9 +45,7 @@ static char sccsid[] = "@(#)getsubopt.c 8.1 (Berkeley) 6/4/93";
char *suboptarg;
int
-getsubopt(optionp, tokens, valuep)
- char **optionp, **valuep;
- char * const *tokens;
+getsubopt(char **optionp, char * const *tokens, char **valuep)
{
int cnt;
char *p;