diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 16:46:45 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-11 17:35:01 -0500 |
commit | f654c854d1d4e0aca5389ace541647237eb7f753 (patch) | |
tree | 1b0e12ee723795bef70723749315a780e41c7b52 | |
parent | 8109b02b5397ed52a32c116163a62a34f4768b26 (diff) |
[HAMRADIO]: Fix baycom_epp.c compile failure.
Fix foobar in 15b1c0e822f578306332d4f4c449250db5c5dceb and
e8cc49bb0fdb9e18a99e6780073d1400ba2b0d1f patch series.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/hamradio/baycom_epp.c | 2 | ||||
-rw-r--r-- | include/net/ax25.h | 2 | ||||
-rw-r--r-- | net/ax25/ax25_addr.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c index 8a83db0fb3b7..153b6dc80af4 100644 --- a/drivers/net/hamradio/baycom_epp.c +++ b/drivers/net/hamradio/baycom_epp.c | |||
@@ -1177,7 +1177,7 @@ static void baycom_probe(struct net_device *dev) | |||
1177 | dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ | 1177 | dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ |
1178 | dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */ | 1178 | dev->addr_len = AX25_ADDR_LEN; /* sizeof an ax.25 address */ |
1179 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); | 1179 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); |
1180 | memcpy(dev->dev_addr, &ax25_nocall, AX25_ADDR_LEN); | 1180 | memcpy(dev->dev_addr, &null_ax25_address, AX25_ADDR_LEN); |
1181 | dev->tx_queue_len = 16; | 1181 | dev->tx_queue_len = 16; |
1182 | 1182 | ||
1183 | /* New style flags */ | 1183 | /* New style flags */ |
diff --git a/include/net/ax25.h b/include/net/ax25.h index e1d116f11923..14b72d868f03 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -285,6 +285,8 @@ extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); | |||
285 | extern const ax25_address ax25_bcast; | 285 | extern const ax25_address ax25_bcast; |
286 | extern const ax25_address ax25_defaddr; | 286 | extern const ax25_address ax25_defaddr; |
287 | extern const ax25_address null_ax25_address; | 287 | extern const ax25_address null_ax25_address; |
288 | extern char *ax2asc(char *buf, const ax25_address *); | ||
289 | extern void asc2ax(ax25_address *addr, const char *callsign); | ||
288 | extern int ax25cmp(const ax25_address *, const ax25_address *); | 290 | extern int ax25cmp(const ax25_address *, const ax25_address *); |
289 | extern int ax25digicmp(const ax25_digi *, const ax25_digi *); | 291 | extern int ax25digicmp(const ax25_digi *, const ax25_digi *); |
290 | extern const unsigned char *ax25_addr_parse(const unsigned char *, int, | 292 | extern const unsigned char *ax25_addr_parse(const unsigned char *, int, |
diff --git a/net/ax25/ax25_addr.c b/net/ax25/ax25_addr.c index 21a0616152fc..97a49c79c605 100644 --- a/net/ax25/ax25_addr.c +++ b/net/ax25/ax25_addr.c | |||
@@ -83,7 +83,7 @@ EXPORT_SYMBOL(ax2asc); | |||
83 | */ | 83 | */ |
84 | void asc2ax(ax25_address *addr, const char *callsign) | 84 | void asc2ax(ax25_address *addr, const char *callsign) |
85 | { | 85 | { |
86 | char *s; | 86 | const char *s; |
87 | int n; | 87 | int n; |
88 | 88 | ||
89 | for (s = callsign, n = 0; n < 6; n++) { | 89 | for (s = callsign, n = 0; n < 6; n++) { |