Source-Changes-HG archive

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

[src/trunk]: src/libexec/rshd Remove unnecessary cast.



details:   https://anonhg.NetBSD.org/src/rev/7bbd894ab898
branches:  trunk
changeset: 574759:7bbd894ab898
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Fri Mar 11 16:04:09 2005 +0000

description:
Remove unnecessary cast.

diffstat:

 libexec/rshd/rshd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 38b39d1ee30c -r 7bbd894ab898 libexec/rshd/rshd.c
--- a/libexec/rshd/rshd.c       Fri Mar 11 15:51:25 2005 +0000
+++ b/libexec/rshd/rshd.c       Fri Mar 11 16:04:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rshd.c,v 1.37 2005/03/09 16:43:37 wiz Exp $    */
+/*     $NetBSD: rshd.c,v 1.38 2005/03/11 16:04:09 ginsbach Exp $       */
 
 /*
  * Copyright (C) 1998 WIDE Project.
@@ -69,7 +69,7 @@
 #if 0
 static char sccsid[] = "@(#)rshd.c     8.2 (Berkeley) 4/6/94";
 #else
-__RCSID("$NetBSD: rshd.c,v 1.37 2005/03/09 16:43:37 wiz Exp $");
+__RCSID("$NetBSD: rshd.c,v 1.38 2005/03/11 16:04:09 ginsbach Exp $");
 #endif
 #endif /* not lint */
 
@@ -374,7 +374,7 @@
                        exit(1);
                }
                *portp = htons(port);
-               if (connect(s, (struct sockaddr *)fromp, fromp->sa_len) < 0) {
+               if (connect(s, fromp, fromp->sa_len) < 0) {
                        syslog(LOG_ERR, "connect second port %d: %m", port);
                        exit(1);
                }



Home | Main Index | Thread Index | Old Index