summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
commit0dd68e795ed43c6826a110e3a46696c6473fbb42 (patch)
treeec890814857e7421022a72511d6db4ccfbc02e2f /net
parentc36aba610128168d32b04393dd14b2f8e35518cf (diff)
downloadbarebox-0dd68e795ed43c6826a110e3a46696c6473fbb42.tar.gz
barebox-0dd68e795ed43c6826a110e3a46696c6473fbb42.tar.xz
- putc is now putchar for better standard conformity
- make printf return int
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c6
-rw-r--r--net/net.c2
-rw-r--r--net/tftp.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 84e6c91084..419a40e2b6 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -253,13 +253,13 @@ static void BootpVendorProcess (u8 * ext, int size)
if (NetOurSubnetMask) {
puts ("NetOurSubnetMask : ");
print_IPaddr (NetOurSubnetMask);
- putc ('\n');
+ putchar('\n');
}
if (NetOurGatewayIP) {
puts ("NetOurGatewayIP : ");
print_IPaddr (NetOurGatewayIP);
- putc ('\n');
+ putchar('\n');
}
if (NetBootFileSize) {
@@ -827,7 +827,7 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
dhcp_state = BOUND;
puts ("DHCP client bound to address ");
print_IPaddr(NetOurIP);
- putc ('\n');
+ putchar('\n');
NetState = NETLOOP_SUCCESS;
return;
diff --git a/net/net.c b/net/net.c
index 3e75e9db57..331269d70f 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1267,7 +1267,7 @@ NetReceive(uchar * inpkt, int len)
return;
puts (" ICMP Host Redirect to ");
print_IPaddr(icmph->un.gateway);
- putc(' ');
+ putchar(' ');
return;
#ifdef CONFIG_NET_PING
case ICMP_ECHO_REPLY:
diff --git a/net/tftp.c b/net/tftp.c
index c761c21f7a..e690c39345 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -210,7 +210,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
printf ("\n\t %lu MB received\n\t ", TftpBlockWrapOffset>>20);
} else {
if (((TftpBlock - 1) % 10) == 0) {
- putc ('#');
+ putchar('#');
} else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0) {
puts ("\n\t ");
}
@@ -330,7 +330,7 @@ TftpStart (void)
print_IPaddr (NetOurGatewayIP) ;
}
}
- putc ('\n');
+ putchar('\n');
printf ("Filename '%s'.", tftp_filename);
@@ -339,7 +339,7 @@ TftpStart (void)
print_size (NetBootFileSize<<9, "");
}
- putc ('\n');
+ putchar('\n');
puts ("Loading: *\b");