Add Robert Hogan. Also update my entry.
[obnox/wireshark/wip.git] / tap-rpcprogs.c
index b8f111045529058291fe79b557a4f16a2291848a..ecf49016883a137825a7535c9b2d522c5b835ae0 100644 (file)
@@ -130,7 +130,7 @@ rpcprogs_packet(void *dummy1 _U_, packet_info *pinfo, epan_dissect_t *edt _U_, c
 
        
        /* we are only interested in reply packets */
-       if(ri->request){
+       if(ri->request || !rp){
                return 0;
        }
 
@@ -197,7 +197,7 @@ rpcprogs_draw(void *dummy _U_)
                }
 
                g_snprintf(str, sizeof(str), "%s(%d)",rpc_prog_name(rp->program),rp->program);
-               printf("%-15s %2d %6d %3d.%05d %3d.%05d %3" PRIu64 ".%05" PRIu64 "\n",
+               printf("%-15s %2d %6d %3d.%05d %3d.%05d %3" G_GINT64_MODIFIER "u.%05" G_GINT64_MODIFIER "u\n",
                        str,
                        rp->version,
                        rp->num,
@@ -220,7 +220,7 @@ rpcprogs_init(const char *optarg _U_, void* userdata _U_)
        }
        already_enabled=1;
 
-       error_string=register_tap_listener("rpc", NULL, NULL, NULL, rpcprogs_packet, rpcprogs_draw);
+       error_string=register_tap_listener("rpc", NULL, NULL, 0, NULL, rpcprogs_packet, rpcprogs_draw);
        if(error_string){
                fprintf(stderr,"tshark: Couldn't register rpc,programs tap: %s\n",
                    error_string->str);