VirtualBox

Ignore:
Timestamp:
Mar 29, 2010 4:09:43 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59454
Message:

misc compiler warning fixes, comment typos and other minor cleanups

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
5 edited

Legend:

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

    r26495 r27797  
    340340static int dhcp_send_ack(PNATState pData, struct bootp_t *bp, BOOTPClient *bc, struct mbuf *m, int fDhcpRequest)
    341341{
    342     struct bootp_t *rbp;
    343342    int offReply = 0; /* boot_reply will fill general options and add END before sending response */
    344343
     
    384383    struct in_addr daddr;
    385384    int offReply;
    386     uint8_t *opt;
    387385    uint8_t *req_ip = NULL;
    388386    uint8_t *server_ip = NULL;
     
    619617    struct in_addr req_ip;
    620618    int fDhcpDiscover = 0;
    621     int len, tag;
    622619    struct mbuf *m = NULL;
    623620
  • trunk/src/VBox/Devices/Network/slirp/mbuf.c

    r27448 r27797  
    137137            goto recheck_zone;
    138138        AssertMsgFailed(("No mbufs on free list\n"));
    139         return NULL;
     139        m = NULL;
     140        goto end_error;
    140141#else
    141142        m = (struct mbuf *)RTMemAlloc(msize);
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r27573 r27797  
    568568        /* A "normal" UDP packet */
    569569        struct mbuf *m;
    570         struct ethhdr *eh;
    571570        ssize_t len;
    572571        u_long n = 0;
  • trunk/src/VBox/Devices/Network/slirp/tcp_input.c

    r25822 r27797  
    431431        || so->so_faddr.s_addr != ti->ti_dst.s_addr)
    432432    {
     433#ifdef VBOX_WITH_SLIRP_MT
    433434        struct socket *sonxt;
     435#endif
    434436        QSOCKET_UNLOCK(tcb);
    435437        /* @todo fix SOLOOKUP macrodefinition to be usable here */
  • trunk/src/VBox/Devices/Network/slirp/tcp_output.c

    r26404 r27797  
    8181    unsigned optlen, hdrlen;
    8282    int idle, sendalot;
     83#ifdef VBOX_WITH_SLIRP_BSD_MBUF
    8384    int size;
     85#endif
    8486
    8587    DEBUG_CALL("tcp_output");
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