summaryrefslogtreecommitdiffstats
path: root/ax25/axgetput
diff options
context:
space:
mode:
Diffstat (limited to 'ax25/axgetput')
-rw-r--r--ax25/axgetput/proto_bin.c2
-rw-r--r--ax25/axgetput/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c
index 9be7a58..b3e3420 100644
--- a/ax25/axgetput/proto_bin.c
+++ b/ax25/axgetput/proto_bin.c
@@ -38,7 +38,7 @@ static int init_crc(void)
static int do_crc(char b, int n, unsigned int crc)
{
crc = (crctab[(crc >> 8)] ^ ((crc << 8) | (b & 0xff))) & 0xffff;
- return (crc);
+ return crc;
}
/*---------------------------------------------------------------------------*/
diff --git a/ax25/axgetput/util.c b/ax25/axgetput/util.c
index f20937f..5501035 100644
--- a/ax25/axgetput/util.c
+++ b/ax25/axgetput/util.c
@@ -62,7 +62,7 @@ int my_read(int fd, char *s, int len_max, int *eof, char *p_break)
* len = 0: normal eof. if we're looking for a string, return -1 since
* we have'nt found
*/
- return (len == 0 && p_break ? -1 : (len_got ? len_got : len));
+ return len == 0 && p_break ? -1 : (len_got ? len_got : len);
}
len_got += len;