Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix some const fallout.



details:   https://anonhg.NetBSD.org/src/rev/823c364a4b70
branches:  trunk
changeset: 581491:823c364a4b70
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Jun 02 04:40:46 2005 +0000

description:
Fix some const fallout.

diffstat:

 sys/netinet/tcp_debug.c |  6 +++---
 sys/netinet/tcp_debug.h |  4 ++--
 sys/netinet/tcp_timer.h |  4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r d7c8987e3c92 -r 823c364a4b70 sys/netinet/tcp_debug.c
--- a/sys/netinet/tcp_debug.c   Thu Jun 02 04:34:57 2005 +0000
+++ b/sys/netinet/tcp_debug.c   Thu Jun 02 04:40:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_debug.c,v 1.21 2005/02/03 23:25:22 perry Exp $     */
+/*     $NetBSD: tcp_debug.c,v 1.22 2005/06/02 04:40:46 riz Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_debug.c,v 1.21 2005/02/03 23:25:22 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_debug.c,v 1.22 2005/06/02 04:40:46 riz Exp $");
 
 #include "opt_inet.h"
 #include "opt_tcp_debug.h"
@@ -188,7 +188,7 @@
                flags = th->th_flags;
                if (flags) {
 #ifndef lint
-                       char *cp = "<";
+                       const char *cp = "<";
 #define pf(f) { if (th->th_flags&__CONCAT(TH_,f)) { printf("%s%s", cp, "f"); cp = ","; } }
                        pf(SYN); pf(ACK); pf(FIN); pf(RST); pf(PUSH); pf(URG);
 #endif
diff -r d7c8987e3c92 -r 823c364a4b70 sys/netinet/tcp_debug.h
--- a/sys/netinet/tcp_debug.h   Thu Jun 02 04:34:57 2005 +0000
+++ b/sys/netinet/tcp_debug.h   Thu Jun 02 04:40:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_debug.h,v 1.14 2003/08/07 16:33:15 agc Exp $       */
+/*     $NetBSD: tcp_debug.h,v 1.15 2005/06/02 04:40:46 riz Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -64,7 +64,7 @@
 #define        TA_DROP         4
 
 #ifdef TANAMES
-char   *tanames[] =
+const char     *tanames[] =
     { "input", "output", "user", "respond", "drop" };
 #endif
 
diff -r d7c8987e3c92 -r 823c364a4b70 sys/netinet/tcp_timer.h
--- a/sys/netinet/tcp_timer.h   Thu Jun 02 04:34:57 2005 +0000
+++ b/sys/netinet/tcp_timer.h   Thu Jun 02 04:40:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_timer.h,v 1.21 2005/03/04 05:51:41 mycroft Exp $   */
+/*     $NetBSD: tcp_timer.h,v 1.22 2005/06/02 04:40:46 riz Exp $       */
 
 /*-
  * Copyright (c) 2001, 2005 The NetBSD Foundation, Inc.
@@ -145,7 +145,7 @@
 #define        TCP_DELACK_TICKS (hz / PR_FASTHZ)       /* time to delay ACK */
 
 #ifdef TCPTIMERS
-char *tcptimers[] =
+const char *tcptimers[] =
     { "REXMT", "PERSIST", "KEEP", "2MSL" };
 #endif
 



Home | Main Index | Thread Index | Old Index