Commit f654c854 authored by Ralf Baechle's avatar Ralf Baechle Committed by David S. Miller

[HAMRADIO]: Fix baycom_epp.c compile failure.

Fix foobar in 15b1c0e8 and
e8cc49bb patch series.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8109b02b
...@@ -1177,7 +1177,7 @@ static void baycom_probe(struct net_device *dev) ...@@ -1177,7 +1177,7 @@ static void baycom_probe(struct net_device *dev)
dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */
dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */ dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */
memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN);
memcpy(dev->dev_addr, &ax25_nocall, AX25_ADDR_LEN); memcpy(dev->dev_addr, &null_ax25_address, AX25_ADDR_LEN);
dev->tx_queue_len = 16; dev->tx_queue_len = 16;
/* New style flags */ /* New style flags */
......
...@@ -285,6 +285,8 @@ extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); ...@@ -285,6 +285,8 @@ extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *);
extern const ax25_address ax25_bcast; extern const ax25_address ax25_bcast;
extern const ax25_address ax25_defaddr; extern const ax25_address ax25_defaddr;
extern const ax25_address null_ax25_address; extern const ax25_address null_ax25_address;
extern char *ax2asc(char *buf, const ax25_address *);
extern void asc2ax(ax25_address *addr, const char *callsign);
extern int ax25cmp(const ax25_address *, const ax25_address *); extern int ax25cmp(const ax25_address *, const ax25_address *);
extern int ax25digicmp(const ax25_digi *, const ax25_digi *); extern int ax25digicmp(const ax25_digi *, const ax25_digi *);
extern const unsigned char *ax25_addr_parse(const unsigned char *, int, extern const unsigned char *ax25_addr_parse(const unsigned char *, int,
......
...@@ -83,7 +83,7 @@ EXPORT_SYMBOL(ax2asc); ...@@ -83,7 +83,7 @@ EXPORT_SYMBOL(ax2asc);
*/ */
void asc2ax(ax25_address *addr, const char *callsign) void asc2ax(ax25_address *addr, const char *callsign)
{ {
char *s; const char *s;
int n; int n;
for (s = callsign, n = 0; n < 6; n++) { for (s = callsign, n = 0; n < 6; n++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment