Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sockstat Fix a typo in the islistening() routine. Pa...



details:   https://anonhg.NetBSD.org/src/rev/fa683bb1d60c
branches:  trunk
changeset: 583542:fa683bb1d60c
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Wed Aug 10 20:21:14 2005 +0000

description:
Fix a typo in the islistening() routine. Patch provided by Jukka Salmi
on PR#30963.

diffstat:

 usr.bin/sockstat/sockstat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r f7b0039defeb -r fa683bb1d60c usr.bin/sockstat/sockstat.c
--- a/usr.bin/sockstat/sockstat.c       Wed Aug 10 20:04:40 2005 +0000
+++ b/usr.bin/sockstat/sockstat.c       Wed Aug 10 20:21:14 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockstat.c,v 1.7 2005/06/02 03:00:19 lukem Exp $ */
+/*     $NetBSD: sockstat.c,v 1.8 2005/08/10 20:21:14 rpaulo Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: sockstat.c,v 1.7 2005/06/02 03:00:19 lukem Exp $");
+__RCSID("$NetBSD: sockstat.c,v 1.8 2005/08/10 20:21:14 rpaulo Exp $");
 #endif
 
 #include <sys/param.h>
@@ -397,13 +397,13 @@
        case PF_INET:
                if (kp->ki_type == SOCK_RAW ||
                    (kp->ki_type == SOCK_DGRAM &&
-                    ntohs(satosin6(&kp->ki_src)->sin6_port) != 0))
+                    ntohs(satosin(&kp->ki_src)->sin_port) != 0))
                        return (1);
                break;
        case PF_INET6:
                if (kp->ki_type == SOCK_RAW ||
                    (kp->ki_type == SOCK_DGRAM &&
-                    ntohs(satosin(&kp->ki_src)->sin_port) != 0))
+                    ntohs(satosin6(&kp->ki_src)->sin6_port) != 0))
                        return (1);
                break;
        case PF_LOCAL:



Home | Main Index | Thread Index | Old Index