diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-05-25 19:31:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-05-25 19:31:13 +0000 |
commit | 4e008159c8106611c06f4dcf2d023fdaaa29e8bf (patch) | |
tree | cd9381fa56d2baf9e3962c0a6daf0e1be17a74f6 /tshark.c | |
parent | f2c8e0c0ba46611cf650ad62fb30d1d054f549a4 (diff) | |
download | wireshark-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |