summaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r--net/ipv4/arp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 89a8cac4726a..51b27ae09fbd 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1263,7 +1263,7 @@ void __init arp_init(void)
1263/* 1263/*
1264 * ax25 -> ASCII conversion 1264 * ax25 -> ASCII conversion
1265 */ 1265 */
1266static char *ax2asc2(ax25_address *a, char *buf) 1266static void ax2asc2(ax25_address *a, char *buf)
1267{ 1267{
1268 char c, *s; 1268 char c, *s;
1269 int n; 1269 int n;
@@ -1285,10 +1285,10 @@ static char *ax2asc2(ax25_address *a, char *buf)
1285 *s++ = n + '0'; 1285 *s++ = n + '0';
1286 *s++ = '\0'; 1286 *s++ = '\0';
1287 1287
1288 if (*buf == '\0' || *buf == '-') 1288 if (*buf == '\0' || *buf == '-') {
1289 return "*"; 1289 buf[0] = '*';
1290 1290 buf[1] = '\0';
1291 return buf; 1291 }
1292} 1292}
1293#endif /* CONFIG_AX25 */ 1293#endif /* CONFIG_AX25 */
1294 1294
@@ -1322,7 +1322,7 @@ static void arp_format_neigh_entry(struct seq_file *seq,
1322 } 1322 }
1323#endif 1323#endif
1324 sprintf(tbuf, "%pI4", n->primary_key); 1324 sprintf(tbuf, "%pI4", n->primary_key);
1325 seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", 1325 seq_printf(seq, "%-16s 0x%-10x0x%-10x%-17s * %s\n",
1326 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); 1326 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name);
1327 read_unlock(&n->lock); 1327 read_unlock(&n->lock);
1328} 1328}