mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
net: cosmetic: Name ethaddr variables consistently
Use "_ethaddr" at the end of variables and drop CamelCase. Make constant values actually 'const'. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
586cbe51ab
commit
0adb5b761f
@@ -37,7 +37,7 @@ SntpSend(void)
|
||||
SntpOurPort = 10000 + (get_timer(0) % 4096);
|
||||
sport = NTP_SERVICE_PORT;
|
||||
|
||||
NetSendUDPPacket(NetServerEther, net_ntp_server, sport, SntpOurPort,
|
||||
NetSendUDPPacket(net_server_ethaddr, net_ntp_server, sport, SntpOurPort,
|
||||
pktlen);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ SntpStart(void)
|
||||
|
||||
NetSetTimeout(SNTP_TIMEOUT, SntpTimeout);
|
||||
net_set_udp_handler(sntp_handler);
|
||||
memset(NetServerEther, 0, sizeof(NetServerEther));
|
||||
memset(net_server_ethaddr, 0, sizeof(net_server_ethaddr));
|
||||
|
||||
SntpSend();
|
||||
}
|
||||
|
Reference in New Issue
Block a user