netstat(8): Remove upHex(), which is unused since we dropped NS.
authorSascha Wildner <saw@online.de>
Sun, 15 Jun 2014 18:02:00 +0000 (20:02 +0200)
committerSascha Wildner <saw@online.de>
Sun, 15 Jun 2014 18:02:21 +0000 (20:02 +0200)
usr.bin/netstat/netstat.h
usr.bin/netstat/route.c

index 670c029..83dc340 100644 (file)
@@ -108,7 +108,6 @@ void        pr_rthdr (int);
 void   pr_family (int);
 void   rt_stats (void);
 char   *ns_phost (struct sockaddr *);
-void   upHex (char *);
 
 char   *routename (u_long);
 char   *netname (u_long, u_long);
index c7ea67b..5bca67d 100644 (file)
@@ -1082,25 +1082,6 @@ rt_stats(void)
 #undef p
 }
 
-void
-upHex(char *p0)
-{
-       char *p = p0;
-
-       for (; *p; p++)
-               switch (*p) {
-
-               case 'a':
-               case 'b':
-               case 'c':
-               case 'd':
-               case 'e':
-               case 'f':
-                       *p += ('A' - 'a');
-                       break;
-               }
-}
-
 static const char *
 labelops(struct rtentry *rt)
 {