summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-03-30 12:50:25 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-03-30 12:50:25 -0500
commitcda345b593ec84d7abbf45b2ce284a9d7f53307c (patch)
tree7ad875acd35d7cd5a18a7676761b35e5385b1b0c /lib
parentc35924db4e1edd83f5a845760098fc8cbd7f7456 (diff)
parentf08e8e5dd415880269fb4ce4cb2fd7bccefe336d (diff)
downloadFreeBSD-src-cda345b593ec84d7abbf45b2ce284a9d7f53307c.zip
FreeBSD-src-cda345b593ec84d7abbf45b2ce284a9d7f53307c.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/svc_simple.c2
-rw-r--r--lib/libthr/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/svc_simple.c b/lib/libc/rpc/svc_simple.c
index 942d07e..2e98c6a 100644
--- a/lib/libc/rpc/svc_simple.c
+++ b/lib/libc/rpc/svc_simple.c
@@ -272,7 +272,7 @@ universal(rqstp, transp)
/* decode arguments into a CLEAN buffer */
xdrbuf = pl->p_xdrbuf;
/* Zero the arguments: reqd ! */
- (void) memset(xdrbuf, 0, sizeof (pl->p_recvsz));
+ (void) memset(xdrbuf, 0, (size_t)pl->p_recvsz);
/*
* Assuming that sizeof (xdrbuf) would be enough
* for the arguments; if not then the program
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
index 51fa291..8b333dd 100644
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -38,7 +38,7 @@ SYMBOL_MAPS=${.CURDIR}/pthread.map
MAN= libthr.3
-# enable extra internal consistancy checks
+# enable extra internal consistency checks
CFLAGS+=-D_PTHREADS_INVARIANTS
PRECIOUSLIB=
OpenPOWER on IntegriCloud