Wireshark mailing list archives
Compile warning turning error in wiretap/camins.c
From: Joerg Mayer <jmayer () loplof de>
Date: Thu, 2 Jan 2014 15:46:33 +0100
/home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c: In function ‘read_block’: /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:118:5: error: passing argument 3 of ‘file_read’ from incompatible pointer type [-Werror] bytes_read = file_read((void *)buf, buf_len, fh); ^ In file included from /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:68:0: /home/jmayer/work/wireshark/svn/trunk/filetap/file_wrappers.h:40:19: note: expected ‘FILE_F’ but argument is of type ‘FILE_T’ WS_DLL_PUBLIC int file_read(void *buf, unsigned int count, FILE_F file); ^ /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:120:9: error: passing argument 1 of ‘file_error’ from incompatible pointer type [-Werror] *err = file_error(fh, err_info); ^ In file included from /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:68:0: /home/jmayer/work/wireshark/svn/trunk/filetap/file_wrappers.h:44:19: note: expected ‘FILE_F’ but argument is of type ‘FILE_T’ WS_DLL_PUBLIC int file_error(FILE_F fh, gchar **err_info); ^ /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c: In function ‘read_packet_data’: /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:227:13: error: passing argument 1 of ‘file_seek’ from incompatible pointer type [-Werror] if (-1 == file_seek(fh, -(gint64)sizeof(block), SEEK_CUR, err)) ^ In file included from /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:68:0: /home/jmayer/work/wireshark/svn/trunk/filetap/file_wrappers.h:34:22: note: expected ‘FILE_F’ but argument is of type ‘FILE_T’ WS_DLL_PUBLIC gint64 file_seek(FILE_F stream, gint64 offset, int whence, int *err); ^ /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c: In function ‘camins_read’: /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:304:5: error: passing argument 1 of ‘file_tell’ from incompatible pointer type [-Werror] *data_offset = file_tell(wth->fh); ^ In file included from /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:68:0: /home/jmayer/work/wireshark/svn/trunk/filetap/file_wrappers.h:36:22: note: expected ‘FILE_F’ but argument is of type ‘FILE_T’ WS_DLL_PUBLIC gint64 file_tell(FILE_F stream); ^ /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c: In function ‘camins_seek_read’: /home/jmayer/work/wireshark/svn/trunk/wiretap/camins.c:316:5: error: passing argument 1 of ‘file_seek’ from incompatible pointer type [-Werror] if (-1 == file_seek(wth->random_fh, seek_off, SEEK_SET, err)) ^ .... -- Joerg Mayer <jmayer () loplof de> We are stuck with technology when what we really want is just stuff that works. Some say that should read Microsoft instead of technology. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Compile warning turning error in wiretap/camins.c Joerg Mayer (Jan 02)
- Re: Compile warning turning error in wiretap/camins.c Joerg Mayer (Jan 02)