VirtualBox

Changeset 40117 in vbox


Ignore:
Timestamp:
Feb 14, 2012 5:15:38 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76258
Message:

NAT/libalias: calm down clang-analyzer (replace assignment with initialization).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias.c

    r40116 r40117  
    12471247    struct in_addr alias_addr;
    12481248    struct ip *pip;
     1249#ifndef VBOX
    12491250    int iresult;
     1251#else
     1252    int iresult = PKT_ALIAS_IGNORED;
     1253#endif
    12501254
    12511255    if (la->packetAliasMode & PKT_ALIAS_REVERSE) {
     
    12671271    }
    12681272
     1273#ifndef VBOX
    12691274    iresult = PKT_ALIAS_IGNORED;
     1275#endif
    12701276    if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) {
    12711277        switch (pip->ip_p) {
     
    13691375)
    13701376{
     1377#ifndef VBOX
    13711378    int iresult;
     1379#else
     1380    int iresult = PKT_ALIAS_IGNORED;
     1381#endif
    13721382    struct in_addr addr_save;
    13731383    struct ip *pip;
     
    14101420        SetDefaultAliasAddress(la, pip->ip_src);
    14111421    }
     1422#ifndef VBOX
    14121423    iresult = PKT_ALIAS_IGNORED;
     1424#endif
    14131425    if ((ntohs(pip->ip_off) & IP_OFFMASK) == 0) {
    14141426        switch (pip->ip_p) {
Note: See TracChangeset for help on using the changeset viewer.

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