VirtualBox

Changeset 3196 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jun 21, 2007 7:11:55 AM (17 years ago)
Author:
vboxsync
Message:

worked around annoying gcc warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp

    r2981 r3196  
    100100};
    101101
     102struct pcaprec_hdr_init
     103{
     104    uint32_t        u32Magic;
     105    struct pcap_hdr pcap;
     106#ifdef LOG_ENABLED
     107    pcaprec_hdr     rec;
     108#endif
     109};
    102110
    103111
     
    404412     * Write pcap header.
    405413     */
    406     struct
    407     {
    408         uint32_t        u32Magic;
    409         struct pcap_hdr pcap;
    410414#ifdef LOG_ENABLED
    411         pcaprec_hdr     rec;
    412     }       Hdr = { PCAP_MAGIC, { 2, 4, 0, 0, 0xffff, 1 }, { 0, 1, 0, 60} }; /* force ethereal to start at 0.000000. */
     415    pcaprec_hdr_init Hdr =
     416    {
     417        PCAP_MAGIC,
     418        { 2, 4, 0, 0, 0xffff, 1 },
     419        { 0, 1, 0, 60}
     420    }; /* force ethereal to start at 0.000000. */
    413421#else
    414     }       Hdr = { PCAP_MAGIC, { 2, 4, 0, 0, 0xffff, 1 } }; /* this is just to make it happy, not to be correct. */
     422    pcaprec_hdr_init Hdr =
     423    {
     424        PCAP_MAGIC,
     425        { 2, 4, 0, 0, 0xffff, 1 }
     426    }; /* this is just to make it happy, not to be correct. */
    415427#endif
     428
    416429    RTFileWrite(pData->File, &Hdr, sizeof(Hdr), NULL);
    417430
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette