Ignore:
Timestamp:
11/14/06 11:49:11 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
cab58c5
Parents:
b9aa767
Message:

Fixed up brazillions of warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r2f3a25e r33d83d4  
    267267         * pop off the top header until it can be converted
    268268         */
    269         while (libtrace_to_pcap_dlt(trace_get_link_type(packet))==~0) {
     269        while (libtrace_to_pcap_dlt(trace_get_link_type(packet))==~0U) {
    270270                if (!demote_packet(packet)) {
    271271                        trace_set_err_out(out,
     
    281281         */
    282282        if (!DATAOUT(out)->file) {
    283                 struct pcapfile_header_t hdr;
     283                struct pcapfile_header_t pcaphdr;
    284284
    285285                DATAOUT(out)->file=trace_open_file_out(out,
     
    289289                        return -1;
    290290
    291                 hdr.magic_number = 0xa1b2c3d4;
    292                 hdr.version_major = 2;
    293                 hdr.version_minor = 4;
    294                 hdr.thiszone = 0;
    295                 hdr.sigfigs = 0;
    296                 hdr.snaplen = 65536;
    297                 hdr.network =
     291                pcaphdr.magic_number = 0xa1b2c3d4;
     292                pcaphdr.version_major = 2;
     293                pcaphdr.version_minor = 4;
     294                pcaphdr.thiszone = 0;
     295                pcaphdr.sigfigs = 0;
     296                pcaphdr.snaplen = 65536;
     297                pcaphdr.network =
    298298                        libtrace_to_pcap_dlt(trace_get_link_type(packet));
    299299
    300                 libtrace_io_write(DATAOUT(out)->file, &hdr, sizeof(hdr));
     300                libtrace_io_write(DATAOUT(out)->file, &pcaphdr, sizeof(pcaphdr));
    301301        }
    302302
     
    451451}
    452452
    453 static void pcapfile_help() {
     453static void pcapfile_help(void) {
    454454        printf("pcapfile format module: $Revision$\n");
    455455        printf("Supported input URIs:\n");
     
    497497
    498498
    499 void pcapfile_constructor() {
     499void pcapfile_constructor(void) {
    500500        register_format(&pcapfile);
    501501}
Note: See TracChangeset for help on using the changeset viewer.