Ignore:
Timestamp:
Oct 22, 2004, 3:38:05 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e0d83348
Parents:
6a60333
Message:

2004-10-21 Ralf Corsepius <ralf_corsepius@…>

  • network/GT64260eth.c: Remove ether_sprintf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mvme5500/network/GT64260eth.c

    r6a60333 rc39ecd73  
    157157static int GTeth_MissedFrame_err=0; 
    158158
    159 /*
    160  * Convert Ethernet address to printable (loggable) representation.
    161  */
    162 static const char digits[] = "0123456789abcdef";
    163 char * ether_sprintf(unsigned char *ap)
    164 {
    165   int i;
    166   static char etherbuf[18];
    167   char *cp = etherbuf;
    168 
    169   for (i = 0; i < 6; i++) {
    170       *cp++ = digits[*ap >> 4];
    171       *cp++ = digits[*ap++ & 0xf];
    172       *cp++ = ':';
    173   }
    174   *--cp = 0;
    175   return (etherbuf);
    176 }
    177 
    178159/* We can hard code the address here if config->hardware_address failed */
    179160static int GTethGet_macaddr(int macno, char *hwaddr)
Note: See TracChangeset for help on using the changeset viewer.