From nobody Tue Apr 18 18:31:26 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1CDZ5KJpz45TWr; Tue, 18 Apr 2023 18:31:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1CDZ42Ttz415c; Tue, 18 Apr 2023 18:31:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681842686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kyofPzCCxHDpYunLb5YS6P4bsU+hHIpWJRybMBRTdow=; b=YV9Zb2N00Bb4FPUoYaHVTITJzNykChomFkWbbKNT9r1O0PvUZqj2cUnsdY39v3/3JsYTHG XBygNPWL12YckFTTBCfEibJ6HO9Rxi9vvcQP9T8JGXSNdIOFkYTc01HMnM7Z5dXdEUAi21 dFUmCJ8T4LAIXslxNbbpzpt2JJlzNAKNnqTQOe6aKK6eb6/yitPxeRA6Sb+P9RqnVhw1T0 fV3CJ0nhXYKsqY1S++d/4D8S2MQ2YQD8u+Wa7U8waXPOM4XksCnbp3RM7NQsJOefsRs5r9 nweyXHuIHpYaPO4Vluy+JmQTer02T+x3aCWG8J93mZZi94yFr1LXSkA09F94xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681842686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kyofPzCCxHDpYunLb5YS6P4bsU+hHIpWJRybMBRTdow=; b=tfGqeTpGzOd1U/UakMHIEN7hpbDNuiYhjHcBRotezNshg6ExYIXjmuO6XAYddkNdncEi5n sZXBligH2l7dGDSfu62OXQUidxb8maLDIN2U/zj1lOQYXQeFLYMY9jpZrYqD+w+r3NpI4C DH/sG0+BDaR8H9z29QXDdu81JRglYAkHL1JEj/nYEcbkgP37MoEnV/VMIBSXAUQ4dBWms/ SPKrXnK8PolQzgaSEaM9YhAjpgPFvZFSO9bakLRNEYRevwqlT/vEFgg8WCuJ5I2b116j37 yHYusLemmo99bPsemWWmDEpiDKsH8mebwXT2E1s6dfiy304rNQxpRWyIUGak2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681842686; a=rsa-sha256; cv=none; b=e1Oauv/qrr7gwXbzIP0k1MBqcfwVsfmvcdYaOPPEzyMf4qlFvmsA/E7nUbce4tQIJQm2mN IUAFXupJJJ/VnZc+sQheIgMYMTXUXRRyzzK7a9YQotJy4ERr6PauP9k2TTiTzPs9Ri+pYC sYSM5y+ZYfIEGG2uqVkm4lZ++TvZV5mkrhayZ0l1kVdyUZwqypLnOIYa8/wyJ30GQMyLt/ DzYmniFiJl71CDhhlht8iwIdxky/1/YA4SocnKo26a+bgBqwkiltya1TCk8gsb4VSfEigy PJAWN8BRRsaLCAPp7zfhpTGZ1T2NWTkThbQuKFSGlqxzRG4Oee4G45+mD1P/mw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q1CDZ2rPVzND8; Tue, 18 Apr 2023 18:31:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33IIVQOn026516; Tue, 18 Apr 2023 18:31:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33IIVQRw026515; Tue, 18 Apr 2023 18:31:26 GMT (envelope-from git) Date: Tue, 18 Apr 2023 18:31:26 GMT Message-Id: <202304181831.33IIVQRw026515@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: f6fd5356b3fc - main - smbfs: Use C89 function definition for cf_getopt. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f6fd5356b3fc71467b9e110d683241f25424f97c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f6fd5356b3fc71467b9e110d683241f25424f97c commit f6fd5356b3fc71467b9e110d683241f25424f97c Author: John Baldwin AuthorDate: 2023-04-18 18:20:43 +0000 Commit: John Baldwin 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 */