Hack toprevent checkAPIs complaining about use of 'free'

svn path=/trunk/; revision=27745
This commit is contained in:
Bill Meier 2009-03-16 19:34:02 +00:00
parent 55905b97a8
commit 77310e2bb0
1 changed files with 2 additions and 1 deletions

View File

@ -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 */