Ignore:
Timestamp:
Oct 20, 2011, 1:54:45 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
7bc026e6
Parents:
050adc2
Message:

2011-10-20 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/net/if_ethersubr.c (ether_output): Remove unused vars "hlen", "off".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/if_ethersubr.c

    r050adc2 r9356119  
    122122        struct mbuf *mcopy = (struct mbuf *)0;
    123123        register struct ether_header *eh;
    124         int off, len = m->m_pkthdr.len;
     124        int len = m->m_pkthdr.len;
    125125        struct arpcom *ac = (struct arpcom *)ifp;
    126126#ifdef NETATALK
    127127        struct at_ifaddr *aa;
    128128#endif /* NETATALK */
    129         int hlen;       /* link layer header length */
    130129
    131130        if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
     
    156155                                senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
    157156        }
    158         hlen = ETHER_HDR_LEN;
    159157        switch (dst->sa_family) {
    160158
     
    166164                if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
    167165                        mcopy = m_copy(m, 0, (int)M_COPYALL);
    168                 off = m->m_pkthdr.len - m->m_len;
    169166                type = htons(ETHERTYPE_IP);
    170167                break;
Note: See TracChangeset for help on using the changeset viewer.