summaryrefslogtreecommitdiffstats
path: root/ax25/axspawn.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 02:20:15 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:12:26 +0200
commit1c830798fe54268cc0f9585b5940bea47fa8eb8a (patch)
treefe35fdea7e487d5b7a173f1b958d7e9fbd9d5b84 /ax25/axspawn.c
parent90f6ab2eceada8987fc6e5017ae415eade165c00 (diff)
Remove parenthesis around arguments of return statements.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25/axspawn.c')
-rw-r--r--ax25/axspawn.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index 9e74e85..f8afd66 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -525,11 +525,11 @@ int encstathuf(char *src, int srclen, char *dest, int *destlen)
if ((src == NULL) || (dest == NULL)) {
syslog(LOG_NOTICE, "Huffman encode: src or dest NULL!");
- return(1);
+ return 1;
}
if (srclen > 255) {
syslog(LOG_NOTICE, "Huffman encode: srclen > 255: %d", srclen);
- return(1);
+ return 1;
}
srcptr = src;
destptr = &dest[1];
@@ -552,7 +552,7 @@ int encstathuf(char *src, int srclen, char *dest, int *destlen)
memcpy(&dest[1],src,srclen);
dest[0] = 255;
*destlen = srclen + 1;
- return(0);
+ return 0;
}
bit8 = 0;
*destptr = 0;
@@ -570,7 +570,7 @@ int encstathuf(char *src, int srclen, char *dest, int *destlen)
if (bit8 != 0) (*destlen)++;
(*destlen)++;
dest[0] = (char)(srclen-1);
- return(0);
+ return 0;
}
/* The buffer in src (first byte length-1) is decoded into dest
@@ -588,24 +588,24 @@ int decstathuf(char *src, char *dest, int srclen, int *destlen)
unsigned short decod;
unsigned short newnode;
- if ((src == NULL) || (dest == NULL)) return(1);
+ if ((src == NULL) || (dest == NULL)) return 1;
srcptr = src;
destptr = dest;
*destlen = (int)((*srcptr)+1);
srcptr++;
if (--srclen == 0) {
- return(1);
+ return 1;
}
if (*destlen == 0) {
- return(1);
+ return 1;
}
if (*destlen == 256) {
/* no compression, only copy */
memcpy(dest,src+1,srclen);
*destlen = (unsigned char)(srclen);
- return(0);
+ return 0;
}
wrklen = 0;
decod = 0;
@@ -639,10 +639,10 @@ int decstathuf(char *src, char *dest, int srclen, int *destlen)
if (wrklen >= *destlen) break;
bitmask = 0x80;
srcptr++;
- if (srclen == 0) return(1);
+ if (srclen == 0) return 1;
srclen--;
}
- return(0);
+ return 0;
}
@@ -654,7 +654,7 @@ int _write_ax25(const char *s, int len)
i = write(1, s, len);
fflush(stdout);
- return (i > 0 ? i : 0); /* on error, -1 is returned */
+ return i > 0 ? i : 0; /* on error, -1 is returned */
}
int read_ax25(unsigned char *s, int size)
@@ -677,7 +677,7 @@ int read_ax25(unsigned char *s, int size)
}
}
if (bin) {
- return(len);
+ return len;
}