Source-Changes-HG archive

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

[src/trunk]: src/sys/netccitt fix a couple of lint warnings.



details:   https://anonhg.NetBSD.org/src/rev/e96c8b6242d1
branches:  trunk
changeset: 538661:e96c8b6242d1
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 24 20:54:41 2002 +0000

description:
fix a couple of lint warnings.

diffstat:

 sys/netccitt/if_x25subr.c |  8 ++++----
 sys/netccitt/pk_llcsubr.c |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r 860c27f554de -r e96c8b6242d1 sys/netccitt/if_x25subr.c
--- a/sys/netccitt/if_x25subr.c Thu Oct 24 20:53:50 2002 +0000
+++ b/sys/netccitt/if_x25subr.c Thu Oct 24 20:54:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_x25subr.c,v 1.30 2002/07/03 21:39:42 thorpej Exp $  */
+/*     $NetBSD: if_x25subr.c,v 1.31 2002/10/24 20:54:41 christos Exp $ */
 
 /*
  * Copyright (c) 1990, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_x25subr.c,v 1.30 2002/07/03 21:39:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_x25subr.c,v 1.31 2002/10/24 20:54:41 christos Exp $");
 
 #include "opt_inet.h"
 #include "opt_iso.h"
@@ -98,9 +98,9 @@
        0,              /* _family */
        0,              /* _net */
        {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},       /* _addr */
-       {0},            /* opts */
+       {0, 0, 0, 0},           /* opts [flags, psize, wsize, speed] */
        -1,             /* _udlen */
-       {-1}            /* _udata */
+       {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},       /* _udata */
 };
 
 struct if_x25stats {
diff -r 860c27f554de -r e96c8b6242d1 sys/netccitt/pk_llcsubr.c
--- a/sys/netccitt/pk_llcsubr.c Thu Oct 24 20:53:50 2002 +0000
+++ b/sys/netccitt/pk_llcsubr.c Thu Oct 24 20:54:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pk_llcsubr.c,v 1.12 2001/11/13 00:12:58 lukem Exp $    */
+/*     $NetBSD: pk_llcsubr.c,v 1.13 2002/10/24 20:54:41 christos Exp $ */
 
 /* 
  * Copyright (c) 1990, 1991, 1992
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pk_llcsubr.c,v 1.12 2001/11/13 00:12:58 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pk_llcsubr.c,v 1.13 2002/10/24 20:54:41 christos Exp $");
 
 #include "opt_llc.h"
 
@@ -295,7 +295,7 @@
 struct sockaddr npdl_dummy;
 
 int             npdl_datasize = sizeof(struct sockaddr_dl) -
-((int) ((caddr_t) & ((struct sockaddr_dl *) 0)->sdl_data[0]));
+((int) ((unsigned long)&((struct sockaddr_dl *) 0)->sdl_data[0]));
 
 struct rtentry *
 npaidb_enter(key, value, rt, link)



Home | Main Index | Thread Index | Old Index