From nobody Sun Jan 21 16:18:54 2024 X-Original-To: dev-commits-ports-main@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 4THz7L2mnzz57kLj; Sun, 21 Jan 2024 16:18:54 +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 4THz7L2Bgyz4sg5; Sun, 21 Jan 2024 16:18:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705853934; 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=DOsaJ4XBf+NvbElIWUhc7o4jI3kySiw8x5cMg/SWEbk=; b=mnl003arb26+pFEMWoSD+jueF05pKjgqXvc/c2ZJEreUQ89WU/0mmZXXyrWanBxlkbdQQ9 h6d0tJi0ucjhLMFoX+tQMXGxiXjd3f2oVB3XnslXENufbH84rkIeTLqCnwsXqpijl6hZZF Y2Ec9wZx1fqUyuQDq1rSlbenKyxRXZqqG0brzgta9Htv/uKn5S7gyAP2+POrUZutGoQBYp 33RR7No4hqKpPXvFJy3cagIVY5YSfHKqUGIC0rtvVPnfGXuAaxZEMty42yQ3NrZl4WjGxQ 81uO+0sLRdgnaCiLXhO1i+sKrcHTeOb87RSaISHKAmwUFZgD10uadsUpvc47eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705853934; 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=DOsaJ4XBf+NvbElIWUhc7o4jI3kySiw8x5cMg/SWEbk=; b=Minuf5PHM6zDwILh0fWaevWsvW8rzC/cDgm+oTgdEhPnhZgvZiTWMKtbIIzzHmRJMkGITM FnBhSdVAIEO5y44Je8BoKEAeu1t7EnfdXenitAKfQkVmmieugKd0hLhIW0lofjh4voJLHx Z+9JIccH52svXlVcjrHtLvd6u5HHfW/YYM5cNg9xWB6b1I9vQWP+6ERyvAC14fVk9pOivg XfvlqrBygko7xr7IqUHe9FkU6PKsEf+OniTPREerBDnR2AuB5H0dkKXij//mMdsGEsgKUA NWp4UmFtgxe4VysgkTDsVhoJEz/DudFo+6f7Uu3e6578T6N/7b59010HAmEL6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705853934; a=rsa-sha256; cv=none; b=qkHXwAeT17hTEwxIVhzHjkwDjWq54Ki8jX5iOuwdK9doEFet0YgTTo2826OxeByJt9M8eI TkqtVcYHM1D3yEF5juRNyj4ffZa6deSvpl47Pv0eNE90EgrVNY//1n3bTt76TbjwW+41Ni BL5tagMln9vTcmxqC2PGg9G/KJT/pamvilsXx3SQFIFH1tSDogiokBwB3HTbDpaCmjHnu4 vQaO/V2F4TwESesRx186bMLTuE1iY5paf28BQv/3IQNUf6vo/Rk46XUaPyCerSG8Ikt3xF Iyy7eKFAx7dtkst2DaxC4iWzmPne5WT/sKOLLTXr9ZDkL2wp+zd67q5c5y7RGg== 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 4THz7L1G9xzP5Z; Sun, 21 Jan 2024 16:18:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40LGIsoi048535; Sun, 21 Jan 2024 16:18:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40LGIsme048532; Sun, 21 Jan 2024 16:18:54 GMT (envelope-from git) Date: Sun, 21 Jan 2024 16:18:54 GMT Message-Id: <202401211618.40LGIsme048532@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rodrigo Osorio Subject: git: c7746e3ede88 - main - sysutils/procmap: Fix compilation warnings List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rodrigo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7746e3ede88d4db4177b097606dfcdbf4d75830 Auto-Submitted: auto-generated The branch main has been updated by rodrigo: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7746e3ede88d4db4177b097606dfcdbf4d75830 commit c7746e3ede88d4db4177b097606dfcdbf4d75830 Author: Ricardo Branco AuthorDate: 2024-01-04 21:50:47 +0000 Commit: Rodrigo Osorio CommitDate: 2024-01-21 16:16:27 +0000 sysutils/procmap: Fix compilation warnings Reorder and reformat Makefile to make linters happy --- sysutils/procmap/Makefile | 15 ++++++++++----- sysutils/procmap/files/procmap.c | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sysutils/procmap/Makefile b/sysutils/procmap/Makefile index a23ceb3fb7aa..21030d39d1fa 100644 --- a/sysutils/procmap/Makefile +++ b/sysutils/procmap/Makefile @@ -1,20 +1,25 @@ PORTNAME= procmap PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= sysutils DISTFILES= #empty MAINTAINER= ports@FreeBSD.org COMMENT= Print the contents of a procfs map file -NO_WRKSUBDIR= yes USES= uidfix MAKEFILE= /usr/share/mk/bsd.prog.mk -MAKE_ENV+= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man \ - PROG=procmap MAN8=procmap.8 +MAKE_ENV+= BINDIR=${PREFIX}/bin \ + MAN8=procmap.8 \ + MANDIR=${PREFIX}/man/man \ + PROG=procmap + +NO_WRKSUBDIR= yes -PLIST_FILES= bin/procmap man/man8/${PORTNAME}.8.gz +PLIST_FILES= bin/procmap \ + man/man8/${PORTNAME}.8.gz -procmap_files := procmap.c procmap.8 +procmap_files:= procmap.c procmap.8 post-extract: cd ${FILESDIR} ; \ diff --git a/sysutils/procmap/files/procmap.c b/sysutils/procmap/files/procmap.c index 641e70eb3628..57f5d2a50cfb 100644 --- a/sysutils/procmap/files/procmap.c +++ b/sysutils/procmap/files/procmap.c @@ -35,8 +35,10 @@ #include #include +#include #include #include +#include /* The longest possible path is "/proc/curproc/map". */ #define MAXPATH 18 @@ -86,7 +88,7 @@ main(int argc, char **argv) exit(1); } /* Leave space for a NULL terminator at the end of buf. */ - if (bytes = read(mfd, buf, size - 1) < 0) { + if ((bytes = read(mfd, buf, size - 1)) < 0) { if (errno == EFBIG) { /* Buffer to small; try again. */ size <<= 1;