mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 20:52:22 -04:00
net/tftp.c: cosmetic: fix pointer syntax issues
This removes the following checkpatch issues: - ERROR: "foo * bar" should be "foo *bar" - ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
c718b1439b
commit
2e320257c8
20
net/tftp.c
20
net/tftp.c
@ -146,7 +146,7 @@ mcast_cleanup(void)
|
|||||||
#endif /* CONFIG_MCAST_TFTP */
|
#endif /* CONFIG_MCAST_TFTP */
|
||||||
|
|
||||||
static __inline__ void
|
static __inline__ void
|
||||||
store_block(unsigned block, uchar * src, unsigned len)
|
store_block(unsigned block, uchar *src, unsigned len)
|
||||||
{
|
{
|
||||||
ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
|
ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
|
||||||
ulong newsize = offset + len;
|
ulong newsize = offset + len;
|
||||||
@ -193,9 +193,9 @@ static void TftpTimeout(void);
|
|||||||
static void
|
static void
|
||||||
TftpSend(void)
|
TftpSend(void)
|
||||||
{
|
{
|
||||||
volatile uchar * pkt;
|
volatile uchar *pkt;
|
||||||
volatile uchar * xp;
|
volatile uchar *xp;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
volatile ushort *s;
|
volatile ushort *s;
|
||||||
|
|
||||||
#ifdef CONFIG_MCAST_TFTP
|
#ifdef CONFIG_MCAST_TFTP
|
||||||
@ -340,19 +340,19 @@ TftpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
|
|||||||
* something like "len-8" may give a *huge* number
|
* something like "len-8" may give a *huge* number
|
||||||
*/
|
*/
|
||||||
for (i = 0; i+8 < len; i++) {
|
for (i = 0; i+8 < len; i++) {
|
||||||
if (strcmp((char*)pkt+i, "blksize") == 0) {
|
if (strcmp((char *)pkt+i, "blksize") == 0) {
|
||||||
TftpBlkSize = (unsigned short)
|
TftpBlkSize = (unsigned short)
|
||||||
simple_strtoul((char*)pkt+i+8, NULL,
|
simple_strtoul((char *)pkt+i+8, NULL,
|
||||||
10);
|
10);
|
||||||
debug("Blocksize ack: %s, %d\n",
|
debug("Blocksize ack: %s, %d\n",
|
||||||
(char*)pkt+i+8, TftpBlkSize);
|
(char *)pkt+i+8, TftpBlkSize);
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_TFTP_TSIZE
|
#ifdef CONFIG_TFTP_TSIZE
|
||||||
if (strcmp((char*)pkt+i, "tsize") == 0) {
|
if (strcmp((char *)pkt+i, "tsize") == 0) {
|
||||||
TftpTsize = simple_strtoul((char*)pkt+i+6,
|
TftpTsize = simple_strtoul((char *)pkt+i+6,
|
||||||
NULL, 10);
|
NULL, 10);
|
||||||
debug("size = %s, %d\n",
|
debug("size = %s, %d\n",
|
||||||
(char*)pkt+i+6, TftpTsize);
|
(char *)pkt+i+6, TftpTsize);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user