Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net Delint.



details:   https://anonhg.NetBSD.org/src/rev/93f72f1c70f8
branches:  trunk
changeset: 480905:93f72f1c70f8
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Jan 22 23:37:14 2000 +0000

description:
Delint.

diffstat:

 lib/libc/net/res_send.c |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (56 lines):

diff -r 3087a0d78f23 -r 93f72f1c70f8 lib/libc/net/res_send.c
--- a/lib/libc/net/res_send.c   Sat Jan 22 23:36:17 2000 +0000
+++ b/lib/libc/net/res_send.c   Sat Jan 22 23:37:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res_send.c,v 1.22 1999/09/20 04:39:18 lukem Exp $      */
+/*     $NetBSD: res_send.c,v 1.23 2000/01/22 23:37:14 mycroft Exp $    */
 
 /*-
  * Copyright (c) 1985, 1989, 1993
@@ -59,7 +59,7 @@
 static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: res_send.c,v 8.13 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: res_send.c,v 1.22 1999/09/20 04:39:18 lukem Exp $");
+__RCSID("$NetBSD: res_send.c,v 1.23 2000/01/22 23:37:14 mycroft Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -202,7 +202,7 @@
        const struct sockaddr_in *inp;
 {
 #ifdef INET6
-       struct sockaddr_in6 *in6p = (struct sockaddr_in6 *)inp;
+       const struct sockaddr_in6 *in6p = (const struct sockaddr_in6 *)inp;
        const struct sockaddr_in6 *srv6;
        const struct sockaddr_in *srv;
 #else /* INET6 */
@@ -463,7 +463,7 @@
                                }
                                errno = 0;
                                if (connect(s, (struct sockaddr *)(void *)nsap,
-                                           nsap->sa_len) < 0) {
+                                           (socklen_t)nsap->sa_len) < 0) {
                                        terrno = errno;
                                        Aerror(stderr, "connect/vc",
                                               errno, (struct sockaddr *)nsap);
@@ -629,8 +629,7 @@
                                if (!connected) {
                                        if (connect(s,
                                            (struct sockaddr *)(void *)nsap,
-                                           nsap->sa_len
-                                                   ) < 0) {
+                                           (socklen_t)nsap->sa_len) < 0) {
                                                Aerror(stderr,
                                                       "connect(dg)",
                                                       errno,
@@ -679,8 +678,7 @@
                                }
                                if (sendto(s, buf, (size_t)buflen, 0,
                                           (struct sockaddr *)(void *)nsap,
-                                          nsap->sa_len)
-                                   != buflen) {
+                                          (socklen_t)nsap->sa_len) != buflen) {
                                        Aerror(stderr, "sendto", errno,
                                            (struct sockaddr *)nsap);
                                        badns |= (1 << ns);



Home | Main Index | Thread Index | Old Index