diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 08:50:11 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 08:52:11 +0200 |
commit | c1a5bd727ae7552ec7171d25aaa7e65a6fd50fb4 (patch) | |
tree | d2d90c8544e80012a5846bc844489a391ee32f7c | |
parent | 8c57f8bb2b04372e0f4fe70d2759a90efe23921f (diff) |
Fix warnings about set but not used variables.
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -Wno-pointer-sign -MT rosedump.o -MD -MP -MF .deps/rosedump.Tpo -c -o rosedump.o rosedump.c
rosedump.c: In function ‘rose_dump’:
rosedump.c:57:17: warning: variable ‘dest’ set but not used [-Wunused-but-set-va riable]
rosedump.c:56:17: warning: variable ‘source’ set but not used [-Wunused-but-set- variable]
rosedump.c: In function ‘facility’:
rosedump.c:329:12: warning: variable ‘lgaddr’ set but not used [-Wunused-but-set -variable]
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | listen/rosedump.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/listen/rosedump.c b/listen/rosedump.c index 9a77677..19347e1 100644 --- a/listen/rosedump.c +++ b/listen/rosedump.c @@ -53,8 +53,6 @@ static void facility(unsigned char *, int len); void rose_dump(unsigned char *data, int length, int hexdump) { - unsigned char *source = NULL; - unsigned char *dest = NULL; unsigned int len, hlen; unsigned int lci = ((unsigned) (data[0] & 0x0F) << 8) + data[1]; lprintf(T_ROSEHDR, "X.25: LCI %3.3X : ", lci); @@ -64,10 +62,6 @@ void rose_dump(unsigned char *data, int length, int hexdump) len = 4; hlen = (((data[3] >> 4) & 0x0F) + 1) / 2; hlen += (((data[3] >> 0) & 0x0F) + 1) / 2; - if (hlen == 10) { - dest = data + 4; - source = data + 9; - } len += hlen; data += len; length -= len; @@ -326,7 +320,7 @@ static char *dump_ax25_call(unsigned char *data, int l_data) static void facility(unsigned char *data, int lgtot) { int lgfac, l, lg, fct, lgdigi, lgaddcall; - int lgad, lgaddr, lgadind, digi_fac; + int lgad, lgadind, digi_fac; char digis[80], digid[80]; char indorig[10], inddest[10]; char addstorig[20], addstdest[20]; @@ -430,7 +424,6 @@ static void facility(unsigned char *data, int lgtot) data += 3; lgad = *data++; lg -= 6; - lgaddr = lgad; if (fct == 0xCB) strcpy(addstorig, dump_x25_addr(data)); |