unsubscribe
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Jul 2022 10:21:37 UTC
<div dir='auto'></div><div class="gmail_extra"><br><div class="gmail_quote">Le 18 juil. 2022 02:24, Xin LI <delphij@FreeBSD.org> a écrit :<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The branch main has been updated by delphij: <br> <br> URL: https://cgit.FreeBSD.org/src/commit/?id=1fbfa7a8dcd091e79754017cb543bab01fa6c157 <br> <br> commit 1fbfa7a8dcd091e79754017cb543bab01fa6c157 <br> Author: Xin LI <delphij@FreeBSD.org> <br> AuthorDate: 2022-07-18 00:24:31 +0000 <br> Commit: Xin LI <delphij@FreeBSD.org> <br> CommitDate: 2022-07-18 00:24:31 +0000 <br> <br> usr.bin/cksum: localize _total variables. <br> --- <br> usr.bin/cksum/crc.c | 2 +- <br> usr.bin/cksum/crc32.c | 2 +- <br> usr.bin/cksum/extern.h | 3 --- <br> 3 files changed, 2 insertions(+), 5 deletions(-) <br> <br> diff --git a/usr.bin/cksum/crc.c b/usr.bin/cksum/crc.c <br> index e110111084b7..b7285132e9b9 100644 <br> --- a/usr.bin/cksum/crc.c <br> +++ b/usr.bin/cksum/crc.c <br> @@ -108,7 +108,7 @@ static const uint32_t crctab[] = { <br> * locations to store the crc and the number of bytes read. It returns 0 on <br> * success and 1 on failure. Errno is set on failure. <br> */ <br> -uint32_t crc_total = ~0;		/* The crc over a number of files. */ <br> +static uint32_t crc_total = ~0;		/* The crc over a number of files. */ <br> <br> int <br> crc(int fd, uint32_t *cval, off_t *clen) <br> diff --git a/usr.bin/cksum/crc32.c b/usr.bin/cksum/crc32.c <br> index cadbc17b69bb..4389969716c3 100644 <br> --- a/usr.bin/cksum/crc32.c <br> +++ b/usr.bin/cksum/crc32.c <br> @@ -95,7 +95,7 @@ static const uint32_t crctab[256] = { <br> 	0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d, <br> }; <br> <br> -uint32_t crc32_total = 0; <br> +static uint32_t crc32_total = 0; <br> <br> int <br> crc32(int fd, uint32_t *cval, off_t *clen) <br> diff --git a/usr.bin/cksum/extern.h b/usr.bin/cksum/extern.h <br> index 43a31db704c7..ce18531d0f13 100644 <br> --- a/usr.bin/cksum/extern.h <br> +++ b/usr.bin/cksum/extern.h <br> @@ -34,9 +34,6 @@ <br> <br> #include <sys/cdefs.h> <br> <br> -extern uint32_t crc_total; <br> -extern uint32_t crc32_total; <br> - <br> __BEGIN_DECLS <br> int	crc(int, uint32_t *, off_t *); <br> void	pcrc(char *, uint32_t, off_t); <br> <br> </p> </blockquote></div><br></div>