[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / netstat

Diff for /src/usr.bin/netstat/main.c between version 1.37 and 1.38

version 1.37, 2003/06/12 07:39:16 version 1.38, 2003/06/26 21:59:11
Line 179 
Line 179 
 };  };
   
 struct protox {  struct protox {
         u_char  pr_index;               /* index into nlist of cb head */          u_char  pr_index;                       /* index into nlist of cb head */
         u_char  pr_sindex;              /* index into nlist of stat block */          u_char  pr_sindex;                      /* index into nlist of stat block */
         u_char  pr_wanted;              /* 1 if wanted, 0 otherwise */          u_char  pr_wanted;                      /* 1 if wanted, 0 otherwise */
         void    (*pr_cblocks)();        /* control blocks printing routine */          void    (*pr_cblocks)(u_long, char *);  /* control blocks printing routine */
         void    (*pr_stats)();          /* statistics printing routine */          void    (*pr_stats)(u_long, char *);    /* statistics printing routine */
         char    *pr_name;               /* well-known name */          char    *pr_name;                       /* well-known name */
 } protox[] = {  } protox[] = {
         { N_TCBTABLE,   N_TCPSTAT,      1,      protopr,          { N_TCBTABLE,   N_TCPSTAT,      1,      protopr,
           tcp_stats,    "tcp" },            tcp_stats,    "tcp" },
Line 545 
Line 545 
 static void  static void
 printproto(struct protox *tp, char *name)  printproto(struct protox *tp, char *name)
 {  {
         void (*pr)();          void (*pr)(u_long, char *);
         u_char i;          u_char i;
   
         if (sflag) {          if (sflag) {

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38