Author: rwatson
Date: Sun Apr 12 21:28:35 2009
New Revision: 190978
URL: http://svn.freebsd.org/changeset/base/190978

Log:
  Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL.
  
  MFC after:    3 days

Modified:
  head/sys/netinet/tcp_var.h

Modified: head/sys/netinet/tcp_var.h
==============================================================================
--- head/sys/netinet/tcp_var.h  Sun Apr 12 21:06:11 2009        (r190977)
+++ head/sys/netinet/tcp_var.h  Sun Apr 12 21:28:35 2009        (r190978)
@@ -458,8 +458,10 @@ struct     tcpstat {
        u_long  tcps_ecn_rcwnd;         /* # times ECN reduced the cwnd */
 };
 
+#ifdef _KERNEL
 #define        TCPSTAT_ADD(name, val)  V_tcpstat.name += (val)
 #define        TCPSTAT_INC(name)       TCPSTAT_ADD(name, 1)
+#endif
 
 /*
  * TCB structure exported to user-land via sysctl(3).
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to