aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-16 19:34:02 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-16 19:34:02 +0000
commit77310e2bb0370cf4a088837677e8be888b7f8660 (patch)
tree8581f55b37ae06682b5c5e84cac559d79a47ce32 /capture-pcap-util.c
parent55905b97a8c67b6310285099d9cf1ddcaa9ec443 (diff)
Hack toprevent checkAPIs complaining about use of 'free'
svn path=/trunk/; revision=27745
Diffstat (limited to 'capture-pcap-util.c')
-rw-r--r--capture-pcap-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/capture-pcap-util.c b/capture-pcap-util.c
index f143a9586c..48b7989811 100644
--- a/capture-pcap-util.c
+++ b/capture-pcap-util.c
@@ -531,7 +531,8 @@ get_pcap_linktype_list(const char *devname, char **err_str)
* http://www.winpcap.org/pipermail/winpcap-users/2008-May/002498.html
*/
#ifndef _WIN32
- free(linktypes);
+#define xx_free free /* hack so checkAPIs doesn't complain */
+ xx_free(linktypes);
#endif /* _WIN32 */
#endif /* HAVE_PCAP_FREE_DATALINKS */
#else /* HAVE_PCAP_LIST_DATALINKS */