Ticket #62860: trafshow-bigsur.diff

File trafshow-bigsur.diff, 2.0 KB (added by DanielO (Daniel O'Connor), 4 years ago)
  • trafshow/Portfile

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/trafshow/Portfile trafshow/Portfile
    old new  
    11PortSystem 1.0
    22name                    trafshow
    33version                 5.2.3
    4 revision                2
     4revision                3
    55categories              net
    66maintainers             nomaintainer
    77description             continuous network traffic display
  • trafshow/files/patch-trafshow.c

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/trafshow/files/patch-trafshow.c trafshow/files/patch-trafshow.c
    old new  
    1 --- trafshow.c.org      2006-03-14 10:58:07.000000000 +0300
    2 +++ trafshow.c  2006-05-15 20:50:43.000000000 +0400
     1--- trafshow.c.orig     2021-05-11 16:50:08.000000000 +0930
     2+++ trafshow.c  2021-05-11 16:52:05.000000000 +0930
     3@@ -58,7 +58,7 @@
     4 static void vers();
     5 static void usage();
     6 static pcap_if_t *pcap_matchdev(pcap_if_t *dp, const char *name);
     7-static int pcap_init(PCAP_HANDLER **ph_list, pcap_if_t *dp);
     8+static int pcap_doinit(PCAP_HANDLER **ph_list, pcap_if_t *dp);
     9 static void *pcap_feed(void *arg); /* PCAP_HANDLER *ph */
     10 #ifdef HAVE_PCAP_GET_SELECTABLE_FD
     11 static void *pcap_feed2(void *arg); /* PCAP_HANDLER *ph */
     12@@ -172,7 +172,7 @@
     13        }
     14 
     15        /* initialize list of pcap handlers */
     16-       if ((op = pcap_init(&ph_list, dev_list)) < 1) {
     17+       if ((op = pcap_doinit(&ph_list, dev_list)) < 1) {
     18                fprintf(stderr, "No packet capture device available (no permission?)\n");
     19                exit(1);
     20        }
     21@@ -298,7 +298,7 @@
     22 }
     23 
     24 static int
     25-pcap_init(ph_list, dp)
     26+pcap_doinit(ph_list, dp)
     27        PCAP_HANDLER **ph_list;
     28        pcap_if_t *dp;
     29 {
    330@@ -862,7 +862,7 @@
    431  -n         Don't convert numeric values to names\n\
    532  -b         To place a backflow near to the main stream\n\