From owner-svn-ports-all@freebsd.org Tue Aug 25 15:55:25 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EBD613CFC15; Tue, 25 Aug 2020 15:55:25 +0000 (UTC) (envelope-from fox@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BbYVP61Y6z4btD; Tue, 25 Aug 2020 15:55:25 +0000 (UTC) (envelope-from fox@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B1E7E2C606; Tue, 25 Aug 2020 15:55:25 +0000 (UTC) (envelope-from fox@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07PFtPDR047836; Tue, 25 Aug 2020 15:55:25 GMT (envelope-from fox@FreeBSD.org) Received: (from fox@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07PFtPqx047834; Tue, 25 Aug 2020 15:55:25 GMT (envelope-from fox@FreeBSD.org) Message-Id: <202008251555.07PFtPqx047834@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fox set sender to fox@FreeBSD.org using -f From: Santhosh Raju Date: Tue, 25 Aug 2020 15:55:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546188 - head/editors/hnb/files X-SVN-Group: ports-head X-SVN-Commit-Author: fox X-SVN-Commit-Paths: head/editors/hnb/files X-SVN-Commit-Revision: 546188 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 15:55:26 -0000 Author: fox Date: Tue Aug 25 15:55:25 2020 New Revision: 546188 URL: https://svnweb.freebsd.org/changeset/ports/546188 Log: editors/hnb: Fixes build on HEAD. Makes the globals used within the file to be static to prevent duplicate symbol while linking. Added: head/editors/hnb/files/ head/editors/hnb/files/patch-src_ui.c (contents, props changed) head/editors/hnb/files/patch-src_ui__draw.c (contents, props changed) Added: head/editors/hnb/files/patch-src_ui.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/hnb/files/patch-src_ui.c Tue Aug 25 15:55:25 2020 (r546188) @@ -0,0 +1,17 @@ +Make sure the globals in the file are static to prevent duplicate symbol during +linking. +--- src/ui.c.orig 2020-08-25 00:53:34 UTC ++++ src/ui.c +@@ -32,9 +32,9 @@ + #define UI_C + #include "ui.h" + +-int nodes_above; +-int active_line; +-int nodes_below; ++static int nodes_above; ++static int active_line; ++static int nodes_below; + int ui_inited = 0; + + void ui_init () Added: head/editors/hnb/files/patch-src_ui__draw.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/hnb/files/patch-src_ui__draw.c Tue Aug 25 15:55:25 2020 (r546188) @@ -0,0 +1,17 @@ +Make sure the globals in the file are static to prevent duplicate symbol during +linking. +--- src/ui_draw.c.orig 2020-08-25 00:53:47 UTC ++++ src/ui_draw.c +@@ -39,9 +39,9 @@ + + #define KEEPLINES 5 + +-int nodes_above; +-int active_line; +-int nodes_below; ++static int nodes_above; ++static int active_line; ++static int nodes_below; + + static Node *up (Node *sel, Node *node) + {