Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace Add an extra cast to size_t when extracting an ...
details: https://anonhg.NetBSD.org/src/rev/9b29f846f27e
branches: trunk
changeset: 533002:9b29f846f27e
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jun 18 21:19:59 2002 +0000
description:
Add an extra cast to size_t when extracting an int stored in a void *.
(XXX Gross.)
diffstat:
bin/systrace/intercept-translate.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 07b461bcdc6a -r 9b29f846f27e bin/systrace/intercept-translate.c
--- a/bin/systrace/intercept-translate.c Tue Jun 18 20:30:41 2002 +0000
+++ b/bin/systrace/intercept-translate.c Tue Jun 18 21:19:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intercept-translate.c,v 1.1 2002/06/17 16:29:08 christos Exp $ */
+/* $NetBSD: intercept-translate.c,v 1.2 2002/06/18 21:19:59 thorpej Exp $ */
/* $OpenBSD: intercept-translate.c,v 1.2 2002/06/04 19:15:54 deraadt Exp $ */
/*
@@ -31,7 +31,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: intercept-translate.c,v 1.1 2002/06/17 16:29:08 christos Exp $");
+__RCSID("$NetBSD: intercept-translate.c,v 1.2 2002/06/18 21:19:59 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -206,7 +206,7 @@
struct sockaddr_storage sa;
socklen_t len;
- len = (socklen_t )trans->trans_addr2;
+ len = (socklen_t) (size_t) trans->trans_addr2;
if (len == 0 || len > sizeof(struct sockaddr_storage))
return (-1);
Home |
Main Index |
Thread Index |
Old Index