From 477f12ca229589baa18098690ebd58c50e20dd8a Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 30 Jan 2017 13:32:46 +0100 Subject: axgetput: Make function calc_crc static. Signed-off-by: Ralf Baechle --- ax25/axgetput/proto_bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25') 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); -- cgit v1.2.3