Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/systrace Do the previous slightly differently.



details:   https://anonhg.NetBSD.org/src/rev/ea2e055e0da0
branches:  trunk
changeset: 533003:ea2e055e0da0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jun 18 21:21:17 2002 +0000

description:
Do the previous slightly differently.

diffstat:

 bin/systrace/intercept-translate.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b29f846f27e -r ea2e055e0da0 bin/systrace/intercept-translate.c
--- a/bin/systrace/intercept-translate.c        Tue Jun 18 21:19:59 2002 +0000
+++ b/bin/systrace/intercept-translate.c        Tue Jun 18 21:21:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intercept-translate.c,v 1.2 2002/06/18 21:19:59 thorpej Exp $  */
+/*     $NetBSD: intercept-translate.c,v 1.3 2002/06/18 21:21:17 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.2 2002/06/18 21:19:59 thorpej Exp $");
+__RCSID("$NetBSD: intercept-translate.c,v 1.3 2002/06/18 21:21:17 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -206,7 +206,7 @@
        struct sockaddr_storage sa;
        socklen_t len;
 
-       len = (socklen_t) (size_t) trans->trans_addr2;
+       len = (size_t) trans->trans_addr2;
        if (len == 0 || len > sizeof(struct sockaddr_storage))
                return (-1);
 



Home | Main Index | Thread Index | Old Index