source: lib/pcap_dump_flush.c @ 006bbf7

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 006bbf7 was 9c6aa95, checked in by Daniel Lawson <dlawson@…>, 16 years ago

cleaned up after compiling with -Wall -W

  • Property mode set to 100644
File size: 336 bytes
Line 
1#include "../config.h"
2
3#ifndef HAVE_PCAP_DUMP_FLUSH
4#include <stdio.h>
5#include <pcap.h>
6#if HAVE_PCAP_INT_H
7# include <pcap-int.h>
8#else
9//# error "Need pcap-int.h for declaration of pcap_t"
10#endif
11#include <string.h>
12
13int pcap_dump_flush(pcap_dumper_t *p) {
14        if (fflush((FILE *)p) == EOF)
15                return (-1);
16        else
17                return (0);
18}
19#endif
Note: See TracBrowser for help on using the repository browser.