VirtualBox

Changeset 72830 in vbox


Ignore:
Timestamp:
Jul 3, 2018 4:15:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123375
Message:

slirp: Don't pass var++ to a macro that uses its argument multiple times.

File:
1 edited

Legend:

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

    r69500 r72830  
    151151    ip->ip_v = IPVERSION;
    152152    ip->ip_off &= IP_DF;
    153     ip->ip_id = RT_H2N_U16(ip_currid++);
     153    ip->ip_id = RT_H2N_U16(ip_currid);
    154154    ip->ip_hl = hlen >> 2;
     155    ip_currid++;
    155156    ipstat.ips_localout++;
    156157
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