Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2015 16:16:46 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r401952 - in head: benchmarks/interbench/files devel/bbfreeze devel/stringencoders
Message-ID:  <201511191616.tAJGGk77002683@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Nov 19 16:16:46 2015
New Revision: 401952
URL: https://svnweb.freebsd.org/changeset/ports/401952

Log:
  Flush a short queue of minor non-functional changes sitting it my tree:
  - Escape literal dot properly in sed(1) code (for REINPLACE_CMD)
  - Spell "C-string" correctly in COMMENT and add a missing newline
  - Use NULL for pointer in C code (original snippet was for C++ and Bjarne
    prefers to avoid macros, per his C++ Style and Technique FAQ)

Modified:
  head/benchmarks/interbench/files/patch-interbench.c
  head/devel/bbfreeze/Makefile
  head/devel/stringencoders/Makefile

Modified: head/benchmarks/interbench/files/patch-interbench.c
==============================================================================
--- head/benchmarks/interbench/files/patch-interbench.c	Thu Nov 19 15:21:15 2015	(r401951)
+++ head/benchmarks/interbench/files/patch-interbench.c	Thu Nov 19 16:16:46 2015	(r401952)
@@ -50,7 +50,7 @@
 +
 +	pagesize = sysconf(_SC_PAGESIZE);
 +	numpages = sysconf(_SC_PHYS_PAGES);
-+	if (sysctlbyname("vm.swap_total", &swap, &len, 0x0, 0) == -1)
++	if (sysctlbyname("vm.swap_total", &swap, &len, NULL, 0) == -1)
 +		swap = 0;
 +
 +	ud.ram = pagesize / 1024 * numpages;

Modified: head/devel/bbfreeze/Makefile
==============================================================================
--- head/devel/bbfreeze/Makefile	Thu Nov 19 15:21:15 2015	(r401951)
+++ head/devel/bbfreeze/Makefile	Thu Nov 19 16:16:46 2015	(r401952)
@@ -23,7 +23,7 @@ PORTDOCS=	*
 
 post-patch:
 	@${REINPLACE_CMD} -e '/altgraph/s,==,>=,' ${WRKSRC}/${PYSETUP}
-	@${REINPLACE_CMD} -e '/from altgraph.compat import/d' \
+	@${REINPLACE_CMD} -e '/from altgraph\.compat import/d' \
 		${WRKSRC}/bbfreeze/modulegraph/modulegraph.py
 
 post-install:

Modified: head/devel/stringencoders/Makefile
==============================================================================
--- head/devel/stringencoders/Makefile	Thu Nov 19 15:21:15 2015	(r401951)
+++ head/devel/stringencoders/Makefile	Thu Nov 19 16:16:46 2015	(r401952)
@@ -9,11 +9,12 @@ CATEGORIES=	devel
 MASTER_SITES=	GOOGLE_CODE
 
 MAINTAINER=	skreuzer@FreeBSD.org
-COMMENT=	Collection of high performance c-string transformations
+COMMENT=	Collection of high performance C-string transformations
 
 USES=		libtool perl5
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+
 CFLAGS+=	-fsigned-char	# chars are unsigned on PowerPC and ARM
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511191616.tAJGGk77002683>