Print this page
3065 some functions in the tcp module can be static

@@ -34,12 +34,13 @@
 #include <inet/tcp_impl.h>
 #include <inet/tcp_stats.h>
 #include <inet/kstatcom.h>
 #include <inet/snmpcom.h>
 
-static int      tcp_kstat_update(kstat_t *kp, int rw);
-static int      tcp_kstat2_update(kstat_t *kp, int rw);
+static int      tcp_snmp_state(tcp_t *);
+static int      tcp_kstat_update(kstat_t *, int);
+static int      tcp_kstat2_update(kstat_t *, int);
 static void     tcp_sum_mib(tcp_stack_t *, mib2_tcp_t *);
 
 static void     tcp_add_mib(mib2_tcp_t *, mib2_tcp_t *);
 static void     tcp_add_stats(tcp_stat_counter_t *, tcp_stat_t *);
 static void     tcp_clr_stats(tcp_stat_t *);

@@ -799,11 +800,11 @@
 
 /*
  * To add stats from one mib2_tcp_t to another.  Static fields are not added.
  * The caller should set them up propertly.
  */
-void
+static void
 tcp_add_mib(mib2_tcp_t *from, mib2_tcp_t *to)
 {
         to->tcpActiveOpens += from->tcpActiveOpens;
         to->tcpPassiveOpens += from->tcpPassiveOpens;
         to->tcpAttemptFails += from->tcpAttemptFails;