summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-02-04 16:02:48 +0000
committerngie <ngie@FreeBSD.org>2017-02-04 16:02:48 +0000
commit1a9602695754476d7f89f486f4e040cd432243ef (patch)
tree5dda125780e915c5c7cd542ecd57b192d2882962 /tests
parent8dca95e6aace7beb049ff3d71dfc6bebc2e56e34 (diff)
downloadFreeBSD-src-1a9602695754476d7f89f486f4e040cd432243ef.zip
FreeBSD-src-1a9602695754476d7f89f486f4e040cd432243ef.tar.gz
MFC r312119,r312216,r312226:
r312119: encode_long, encode_timeval: mechanically replace `exp` with `exponent` This helps fix a -Wshadow issue with exp(3) with tests/sys/acct/acct_test, which include math.h, which in turn defines exp(3) Tested with: clang, gcc 4.2.1, gcc 4.9 r312216: Revert r312119 and reword the intent to fix -Wshadow issues between exp(3) and `exp` var. The approach taken previously was not ideal for multiple functional and stylistic reasons. Add to existing sed call in Makefile to replace `exp` with `exponent` instead. Requested by: bde r312226: Fix typo in r312216 I meant to replace "exp" with "exponent", not "expected" Pointyhat to: ngie
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/kern/acct/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/kern/acct/Makefile b/tests/sys/kern/acct/Makefile
index ca3df4c..aced256 100644
--- a/tests/sys/kern/acct/Makefile
+++ b/tests/sys/kern/acct/Makefile
@@ -13,6 +13,7 @@ acct_test.o: convert.c
convert.c: ${SRCTOP}/sys/kern/kern_acct.c
sed -n -e 's/log(/syslog(/g' \
+ -e 's/exp/exponent/g' \
-e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
OpenPOWER on IntegriCloud