diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-12-04 04:20:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-12-04 04:20:18 +0000 |
commit | 2e6b1ac3b392528799716f803f488f99cde9d49e (patch) | |
tree | 6f9acfc653dfcc947812938c217cca26628ec35f /capture_info.c | |
parent | 02d9de5a5d5b74223f7522bacc30aec6a33a2762 (diff) | |
download | wireshark-2e6b1ac3b392528799716f803f488f99cde9d49e.tar.gz wireshark-2e6b1ac3b392528799716f803f488f99cde9d49e.tar.bz2 wireshark-2e6b1ac3b392528799716f803f488f99cde9d49e.zip |
Declare "capture_info_packet()"'s as static, to match the definition.
Declare the "pd" argument to be "const guchar *", to match the way
packet data is declared elsewhere, and so that if the headers
"capture_info.c" includes don't define "u_char" it still compiles.
svn path=/trunk/; revision=16671
Diffstat (limited to 'capture_info.c')
-rw-r--r-- | capture_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_info.c b/capture_info.c index 05a09542d2..192c64ce0c 100644 --- a/capture_info.c +++ b/capture_info.c @@ -57,8 +57,8 @@ -void capture_info_packet( -packet_counts *counts, gint wtap_linktype, const u_char *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header); +static void capture_info_packet( +packet_counts *counts, gint wtap_linktype, const guchar *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header); @@ -155,7 +155,7 @@ void capture_info_close(void) static void -capture_info_packet(packet_counts *counts, gint wtap_linktype, const u_char *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header) +capture_info_packet(packet_counts *counts, gint wtap_linktype, const guchar *pd, guint32 caplen, union wtap_pseudo_header *pseudo_header) { counts->total++; switch (wtap_linktype) { |