From nobody Mon May 01 16:20:06 2023 X-Original-To: dev-commits-ports-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 4Q97j310dmz48jwn; Mon, 1 May 2023 16:20:07 +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 4Q97j30VsXz3xvh; Mon, 1 May 2023 16:20:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682958007; 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=mbOSYeNkCOyMAHWplzKQHHUBRYMaGzSC+0fnI/XV/xU=; b=L+8QRsrdAK2mSsKB4HUu30cEsYrGX+Xj+9mWqwoVLPIJTx8JMJx550Xnn+CrWK0yh2C4hS 6C2MnrBNvZEZNReZeHDY+a8b9zviJRGHpX/GsASZr99SL75clXomJcRp+TyMlltVj01mnG v8RYUcfyASbJeV2RyDAIifeuIj82w1lhVp0f4w8APXahlgMdqUxblT7dTEP3tz7FIcY2E0 yDuK/6oC+zpdA+z9X1unhb+SH1pkqu886s+xUYDhdM9GP+diImk+5eCSnPj2R3cv/nRk1u 4kSHcqSTN5Iy0yzjy+qeiOK6Ja7d+Apxql6ulpAuG6RKqjIPmlgXmDM7eBmbMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682958007; 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=mbOSYeNkCOyMAHWplzKQHHUBRYMaGzSC+0fnI/XV/xU=; b=R4QdiqyvExrA0FA8BYFWiWcg5nNJJORFqhkdMkDL3b7RSXHSCp4unwzZaOtdhfSKNnkGGu RFEu+1K0t7BGVvSnInqbF5tDHIiUyy8uI8gWu8y6fl3GQBjtrRtxtJnLuSJLAGMATzJrG2 DlFzibefvWw4VnmBGj9zhBv2VtctV7olDKpa4Ac4XdCTpNmt5B5QGGghrb9rb6EYmaC4Wr BhSxB9AXYEzXuurrK6XN4gNlu18ptG6a+vi0uZonOynRTeKNqd/v77NRdBlwrvvhAAt3CD 2eyq6LSBsAdz/aMzXDs87fEhxP94FVs1wISd12NQn8OhCM9V2q3iUCkiyyinCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682958007; a=rsa-sha256; cv=none; b=rjVj+Oz1AT/fSetllrRbwYMhQL/i/tP2clIj6RgR/hfDZjvy9AzcaIgV5vHtA+YO3GRv/m WfmlweXbuHyMEpRvZ11pU5Cl+4cQmp2yevZx+/NvnftBeVepPowpbiWUCrwGL5v2GV3yRw zua/LUxThRfge9QvhdTlcZfP94RDBiWs9QHJJTjBdkuOus0gq+pCZqcN1r6HxAR3aWgnXW thxQwuGDbjhFjCAyt9NLBFFcXt8WydxHqAq7OLN2LILX8lnzrOdRYhxInfbY6KHaWUFO53 RBv/Gv3TqxVbYcQT8BGZ/DHmOslWG4PEnau7H5Kw4oWZKGQNC11z0Iz6Kaw9KQ== 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 4Q97j26RBcz1Btb; Mon, 1 May 2023 16:20:06 +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 341GK6Sr076612; Mon, 1 May 2023 16:20:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 341GK6qc076609; Mon, 1 May 2023 16:20:06 GMT (envelope-from git) Date: Mon, 1 May 2023 16:20:06 GMT Message-Id: <202305011620.341GK6qc076609@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: John Baldwin Subject: git: 17630bb68842 - main - mail/rblcheck: Use a C89 function declaration for main. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-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: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 17630bb688424ad9395302e28f01ede759e76509 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/ports/commit/?id=17630bb688424ad9395302e28f01ede759e76509 commit 17630bb688424ad9395302e28f01ede759e76509 Author: John Baldwin AuthorDate: 2023-05-01 16:19:07 +0000 Commit: John Baldwin CommitDate: 2023-05-01 16:19:07 +0000 mail/rblcheck: Use a C89 function declaration for main. PR: 271070 Reviewed by: fernape Differential Revision: https://reviews.freebsd.org/D39780 --- mail/rblcheck/files/patch-rblcheck.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/mail/rblcheck/files/patch-rblcheck.c b/mail/rblcheck/files/patch-rblcheck.c index 4cb78bc51dce..3ffc25e9c539 100644 --- a/mail/rblcheck/files/patch-rblcheck.c +++ b/mail/rblcheck/files/patch-rblcheck.c @@ -1,5 +1,5 @@ ---- rblcheck.c 2002-11-16 21:32:39 UTC -+++ rblcheck.c 2020-03-19 11:45:01 EST +--- rblcheck.c.orig 2002-11-16 21:32:39 UTC ++++ rblcheck.c @@ -21,15 +21,15 @@ ** */ @@ -18,7 +18,7 @@ /*-- PORTABILITY ------------------------------------------------------------*/ -@@ -184,23 +184,26 @@ struct rbl * togglesite( char * sitename +@@ -184,23 +184,26 @@ struct rbl * togglesite( char * sitename, struct rbl * * domain. If "txt" is non-zero, we perform a TXT record lookup. We * return the text returned from a TXT match, or an empty string, on * a successful match, or NULL on an unsuccessful match. */ @@ -51,7 +51,7 @@ /* Make our DNS query. */ res_init(); -@@ -239,11 +242,11 @@ char * rblcheck( int a, int b, int c, in +@@ -239,11 +242,11 @@ char * rblcheck( int a, int b, int c, int d, char * rb } /* Skip the header and the address we queried. */ @@ -66,7 +66,7 @@ cp++; } -@@ -258,8 +261,8 @@ char * rblcheck( int a, int b, int c, in +@@ -258,8 +261,8 @@ char * rblcheck( int a, int b, int c, int d, char * rb cp += ( NS_INT16SZ * 2 ) + NS_INT32SZ; /* Get the length and end of the buffer. */ @@ -77,7 +77,7 @@ /* Iterate over any multiple answers we might have. In this context, it's unlikely, but anyway. */ -@@ -267,10 +270,10 @@ char * rblcheck( int a, int b, int c, in +@@ -267,10 +270,10 @@ char * rblcheck( int a, int b, int c, int d, char * rb rend = result + RESULT_SIZE - 1; while( cp < cend && rp < rend ) { @@ -92,7 +92,7 @@ { if( *cp == '\n' || *cp == '"' || *cp == '\\' ) -@@ -289,22 +292,38 @@ char * rblcheck( int a, int b, int c, in +@@ -289,22 +292,38 @@ char * rblcheck( int a, int b, int c, int d, char * rb * RBL listing, handling output of results if necessary. */ int full_rblcheck( char * addr ) { @@ -137,3 +137,14 @@ if( !quiet || response ) printf( "%s %s%s%s%s%s%s", addr, ( !quiet && !response ? "not " : "" ), +@@ -328,9 +347,7 @@ int full_rblcheck( char * addr ) + + /*-- MAINLINE ---------------------------------------------------------------*/ + +-int main( argc, argv ) +- int argc; +- char **argv; ++int main( int argc, char ** argv ) + { + int a; + struct rbl * ptr;