git: f6fd5356b3fc - main - smbfs: Use C89 function definition for cf_getopt.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 18:31:26 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f6fd5356b3fc71467b9e110d683241f25424f97c commit f6fd5356b3fc71467b9e110d683241f25424f97c Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-04-18 18:20:43 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-04-18 18:20:43 +0000 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 5328b2ff52fb..55d042d62007 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 */