summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-05-25 19:31:13 +0000
committerGuy Harris <guy@alum.mit.edu>2007-05-25 19:31:13 +0000
commit4e008159c8106611c06f4dcf2d023fdaaa29e8bf (patch)
treecd9381fa56d2baf9e3962c0a6daf0e1be17a74f6 /tshark.c
parentf2c8e0c0ba46611cf650ad62fb30d1d054f549a4 (diff)
downloadwireshark-4e008159c8106611c06f4dcf2d023fdaaa29e8bf.tar.gz
The libpcap callback "user" argument *should* have been a "void *", as
it's a pointer to an arbitrary object, assumed to be correctly aligned, not a pointer to a not-necessarily-properly-aligned array of bytes. Cast it, so we won't get alignment warnings. svn path=/trunk/; revision=21940
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index b30ce80bd5..00c6c350a8 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1941,7 +1941,7 @@ capture_pcap_cb(u_char *user, const struct pcap_pkthdr *phdr,
struct wtap_pkthdr whdr;
union wtap_pseudo_header pseudo_header;
const guchar *wtap_pd;
- loop_data *ld = (loop_data *) user;
+ loop_data *ld = (void *) user;
int loop_err;
int err;
int save_file_fd;