summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 13:32:46 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit477f12ca229589baa18098690ebd58c50e20dd8a (patch)
tree3cd4e4077d539407d965163f62cd2ed1b46905ca
parent3188988126be0cae3340fc132bd4caa3c9ea6485 (diff)
axgetput: Make function calc_crc static.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25/axgetput/proto_bin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c
index 32fb227..3cb3b4b 100644
--- a/ax25/axgetput/proto_bin.c
+++ b/ax25/axgetput/proto_bin.c
@@ -38,7 +38,7 @@ static int do_crc(char b, unsigned int crc)
return (crctab[(crc >> 8)] ^ ((crc << 8) | (b & 0xff))) & 0xffff;
}
-unsigned int calc_crc(char *buf, int n, unsigned crc)
+static unsigned int calc_crc(char *buf, int n, unsigned crc)
{
while (--n >= 0)
crc = do_crc(*buf++, crc);