From f6fd5356b3fc71467b9e110d683241f25424f97c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 18 Apr 2023 11:20:43 -0700 Subject: [PATCH] smbfs: Use C89 function definition for cf_getopt. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39519 --- contrib/smbfs/lib/smb/cfopt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/smbfs/lib/smb/cfopt.c b/contrib/smbfs/lib/smb/cfopt.c index 5328b2ff52f..55d042d6200 100644 --- a/contrib/smbfs/lib/smb/cfopt.c +++ b/contrib/smbfs/lib/smb/cfopt.c @@ -51,10 +51,7 @@ const char* cf_optarg; /* argument associated with option */ #define EMSG "" int -cf_getopt(nargc, nargv, ostr) - int nargc; - char * const *nargv; - const char *ostr; +cf_getopt(int nargc, char * const *nargv, const char *ostr) { static const char *place = EMSG; /* option letter processing */ char *oli; /* option letter list index */