diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:58:13 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:46:16 -0500 |
commit | 0b4c5ff4ab7fb0a69030b9ddb8f9415076ab545b (patch) | |
tree | 5ea84c4749e550766a7d2acba7c75407b6bfb1ba /net | |
parent | 8d353eb86d2f1d7c7de2be2f474edbc53bb0ee5e (diff) | |
download | u-boot-0b4c5ff4ab7fb0a69030b9ddb8f9415076ab545b.tar.gz |
net: cosmetic: Rename CDPHandler to cdp_receive
This is not called as a handler, so don't name it that way
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/cdp.c | 3 | ||||
-rw-r--r-- | net/cdp.h | 3 | ||||
-rw-r--r-- | net/net.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -245,8 +245,7 @@ CDPDummyHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, /* nothing */ } -void -CDPHandler(const uchar *pkt, unsigned len) +void cdp_receive(const uchar *pkt, unsigned len) { const uchar *t; const ushort *ss; @@ -14,7 +14,8 @@ #define __CDP_H__ void CDPStart(void); -void CDPHandler(const uchar *pkt, unsigned len); +/* Process a received CDP packet */ +void cdp_receive(const uchar *pkt, unsigned len); #endif /* __CDP_H__ */ #endif @@ -940,7 +940,7 @@ NetReceive(uchar *inpkt, int len) #if defined(CONFIG_CMD_CDP) if (iscdp) { - CDPHandler((uchar *)ip, len); + cdp_receive((uchar *)ip, len); return; } #endif |