From nobody Tue Feb 10 15:41:01 2026 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 4f9Ql15cMhz6RW5s for ; Tue, 10 Feb 2026 15:41:01 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f9Ql14c6bz3J2y for ; Tue, 10 Feb 2026 15:41:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770738061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SauYX3/PpYlD6j+f7OGDbS+pSpXOg2Wo11JNCjzwnvI=; b=TWQThTwNzKOjXKyi+vniYpwTpkPxTL/c0a6CGlNcdmAkOIPEc61qtqy/M7CHD7u9osUfpn cgepCfHAlGOBJjIxHIlXcBqNHIta1QvYPNhGQKiZUvDbK/EIhr6MbKyVQE8DOwcrIA7cG/ 70fYkZJi71Txq2FZ0Yv71LMAzDW7xBiG3/KI4Kp6ZgX+IPhx26FhEUvb1RWD+HnT8QnJdo 9kAD9gJn2owMeXu207Z0aE06aMappJoSJfsDRnRKDfeeOv6Gc6xnXbZDMOBXnLFtnZWkwg A29+Vv8GCO9zLX5B1EDwOdxmllV5FA0J//eT0dbjc4LcXtCi54sNmkAXx3altw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770738061; a=rsa-sha256; cv=none; b=IFh/HMqV8y/5ED7TFPuHUCwu42sysLcyoKoUzKeVGuF2T1SDsusMh0VIkXAu+Bn5hmw6OY CYyLasnejHDDB7ZiKZUSd4bL+RlzPf4E/9KzTDLiDFO8oXX9++bRjaYQrRvNBs97IkDDx1 X+1ohHm3woAuwVv16j8+kLORGjjhe6/2QirjSGASjnGnf3gJlxK37qgXO3X2l3pU42j1xZ pmAuo2KyiqkyQ00l/h9q876D3YPNGKpel8F8Ew1PvcS4qsxX0nnjddXXjIsXeQ8JnubNlY kXs1ktUoC74Ny4Z1PV8pv43+dLfO5+RG3GVQnHwdoebqNdfKxJYKcUEEmYC6dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770738061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SauYX3/PpYlD6j+f7OGDbS+pSpXOg2Wo11JNCjzwnvI=; b=MhrHiEZYdDsZ3trAV6f4HP96Amdodk+Nout1Jeaz7YQHd284DS85iPnik3v/UPSgvC5bTr SScRkVBKn4mngPzSNlOKIzY65pTGIBTEPnIhKVeph0lf+SUQh+BzMaphnyq2w5Juf/x58j lOQ5JJZLYBt6ebeGxErq7w4lYBYbjURybo4nUhm11QySeErREZ5sl0lYUAL3CvxJgr84aC t4h14YaZmsEqYZndWXJ9eP8b0KLC13vdLKBifCJ0WpTbfQR9OUMUmJehC1Klas40SnQj5i 1deC7pppu3XEOIosfUKRqetX4B0ugFdO0/2UlHO+Xwzchn/SJVVGbMOqAnNKNQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f9Ql141NQz1NYF for ; Tue, 10 Feb 2026 15:41:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46c40 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Feb 2026 15:41:01 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Kristofer Peterson From: Robert Clausecker Subject: git: 003fed6b7b15 - main - games/xpipeman: use portable fileno() instead of (*FILE)->_file 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 003fed6b7b152ddf56b71d18380432a9b24f5b06 Auto-Submitted: auto-generated Date: Tue, 10 Feb 2026 15:41:01 +0000 Message-Id: <698b518d.46c40.327cf3b9@gitrepo.freebsd.org> The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=003fed6b7b152ddf56b71d18380432a9b24f5b06 commit 003fed6b7b152ddf56b71d18380432a9b24f5b06 Author: Kristofer Peterson AuthorDate: 2026-02-04 20:24:55 +0000 Commit: Robert Clausecker CommitDate: 2026-02-10 15:40:36 +0000 games/xpipeman: use portable fileno() instead of (*FILE)->_file PR: 292939, 291610 MFH: 2026Q1 --- games/xpipeman/Makefile | 2 +- games/xpipeman/files/patch-score.c | 27 +++++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/games/xpipeman/Makefile b/games/xpipeman/Makefile index 32e0873a229f..a99d2f1cf02e 100644 --- a/games/xpipeman/Makefile +++ b/games/xpipeman/Makefile @@ -1,6 +1,6 @@ PORTNAME= xpipeman PORTVERSION= 1.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= SUNSITE/games/strategy DISTNAME= ${PORTNAME} diff --git a/games/xpipeman/files/patch-score.c b/games/xpipeman/files/patch-score.c index fe30359ded31..c1334f3773f6 100644 --- a/games/xpipeman/files/patch-score.c +++ b/games/xpipeman/files/patch-score.c @@ -11,7 +11,7 @@ #include "xpipeman.h" /*----------------------------------------------------------------------*/ -@@ -64,13 +65,12 @@ typedef struct { +@@ -64,13 +65,12 @@ static SCORE scores[MAXSCORES]; static SCORE scores[MAXSCORES]; @@ -26,7 +26,16 @@ /*----------------------------------------------------------------------*/ -@@ -100,8 +100,8 @@ load_scores() +@@ -87,7 +87,7 @@ check_score(current_score,level) + } + if(scorefile) { + #ifndef SYSV +- flock(scorefile->_file, LOCK_UN); ++ flock(fileno(scorefile), LOCK_UN); + #endif + fclose(scorefile); + show_scores(); +@@ -100,12 +100,12 @@ load_scores() { int i = 0; @@ -37,6 +46,11 @@ return; } #ifndef SYSV +- flock(scorefile->_file, LOCK_EX); ++ flock(fileno(scorefile), LOCK_EX); + #endif + while( fgets(scores[i].score,6,scorefile) /* get score */ + && fgets(scores[i].name,26,scorefile) /* get name */ @@ -198,7 +198,7 @@ static Arg arglist_popdown[] = { @@ -46,3 +60,12 @@ popdown_callback(w, closure, call_data) Widget w; caddr_t closure; +@@ -281,7 +281,7 @@ show_scores_callback() + + if(scorefile) { + #ifndef SYSV +- flock(scorefile->_file, LOCK_UN); ++ flock(fileno(scorefile), LOCK_UN); + #endif + fclose(scorefile); + show_scores();