summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2005-10-31 02:54:27 +0000
committerThomas Osterried <thomas@osterried.de>2005-10-31 02:54:27 +0000
commit3c349d53d6194801b1d0715320065229f8328928 (patch)
tree57e661583d73cd0dce3f2411de968d3fcdb30f4b
parentb56168505f3beeb1132accb7328e2b1d5e3c5718 (diff)
- make compiler happy
-rw-r--r--ax25ipd/bpqether.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ax25ipd/bpqether.c b/ax25ipd/bpqether.c
index 58333f1..1ad9618 100644
--- a/ax25ipd/bpqether.c
+++ b/ax25ipd/bpqether.c
@@ -1,4 +1,4 @@
-/* @(#) $Id: bpqether.c,v 1.1 2005/10/30 10:31:40 dl9sau Exp $ */
+/* @(#) $Id: bpqether.c,v 1.2 2005/10/31 02:54:27 dl9sau Exp $ */
extern int ttyfd;
/*
@@ -101,8 +101,8 @@ p module) */
int receive_bpq(unsigned char *buf, int l)
{
if ((l -= ethertap_header_len) <= 0 ||
- buf[ethertap_header_len-2] & 0xff != 0x08 ||
- buf[ethertap_header_len-1] & 0xff != 0xff) {
+ (buf[ethertap_header_len-2] & 0xff) != 0x08 ||
+ (buf[ethertap_header_len-1] & 0xff) != 0xff) {
// not a bpqether packet.
// drop silently - ethernet.ax25 is not the only protocol spokenon ethernet ;)
return -1;
@@ -261,10 +261,8 @@ int set_bpq_dev_call_and_up(char *ifname)
char bpq_name[IFNAMSIZ];
char dev_name[IFNAMSIZ];
struct ifreq ifr;
- struct sockaddr *sa;
int drop;
int skfd;
- int len;
int err = -1;
// 1. find correspondent bpqether device in /proc (i.e. bpq0 for tap0)