summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-19 16:16:46 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-11-19 16:16:46 +0000
commitff1d116f2d756bda56aea00ee71efa55940315a4 (patch)
treefb000666405736d4d4425c9082b373a8ce0fa5ab
parentUpdate to version 1.1.2. (diff)
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)
-rw-r--r--benchmarks/interbench/files/patch-interbench.c2
-rw-r--r--devel/bbfreeze/Makefile2
-rw-r--r--devel/stringencoders/Makefile3
3 files changed, 4 insertions, 3 deletions
diff --git a/benchmarks/interbench/files/patch-interbench.c b/benchmarks/interbench/files/patch-interbench.c
index 000a957af176..ec51146ac221 100644
--- a/benchmarks/interbench/files/patch-interbench.c
+++ b/benchmarks/interbench/files/patch-interbench.c
@@ -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;
diff --git a/devel/bbfreeze/Makefile b/devel/bbfreeze/Makefile
index 29ec6f73bba0..60066ae76c0f 100644
--- a/devel/bbfreeze/Makefile
+++ b/devel/bbfreeze/Makefile
@@ -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:
diff --git a/devel/stringencoders/Makefile b/devel/stringencoders/Makefile
index e19544c06309..6a7fd9f714f8 100644
--- a/devel/stringencoders/Makefile
+++ b/devel/stringencoders/Makefile
@@ -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>