ping.c: remove volatile from variables
This commit is contained in:
parent
612e256be2
commit
80e05021c7
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
static ushort PingSeqNo;
|
static ushort PingSeqNo;
|
||||||
|
|
||||||
int PingSend(void)
|
static int PingSend(void)
|
||||||
{
|
{
|
||||||
static uchar mac[6];
|
static uchar mac[6];
|
||||||
volatile IP_t *ip;
|
IP_t *ip;
|
||||||
volatile ushort *s;
|
ushort *s;
|
||||||
uchar *pkt;
|
uchar *pkt;
|
||||||
|
|
||||||
/* XXX always send arp request */
|
/* XXX always send arp request */
|
||||||
|
@ -26,7 +26,7 @@ int PingSend(void)
|
||||||
pkt = NetArpWaitTxPacket;
|
pkt = NetArpWaitTxPacket;
|
||||||
pkt += NetSetEther(pkt, mac, PROT_IP);
|
pkt += NetSetEther(pkt, mac, PROT_IP);
|
||||||
|
|
||||||
ip = (volatile IP_t *)pkt;
|
ip = (IP_t *)pkt;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Construct an IP and ICMP header. (need to set no fragment bit - XXX)
|
* Construct an IP and ICMP header. (need to set no fragment bit - XXX)
|
||||||
|
|
Loading…
Reference in New Issue