unsubscribe

From: wolf white <white-wolf_at_ovh.fr>
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 &lt;delphij@FreeBSD.org&gt; 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:&#13;<br>
&#13;<br>
URL: https://cgit.FreeBSD.org/src/commit/?id=1fbfa7a8dcd091e79754017cb543bab01fa6c157&#13;<br>
&#13;<br>
commit 1fbfa7a8dcd091e79754017cb543bab01fa6c157&#13;<br>
Author:&nbsp;&nbsp;&nbsp;&nbsp; Xin LI &lt;delphij@FreeBSD.org&gt;&#13;<br>
AuthorDate: 2022-07-18 00:24:31 +0000&#13;<br>
Commit:&nbsp;&nbsp;&nbsp;&nbsp; Xin LI &lt;delphij@FreeBSD.org&gt;&#13;<br>
CommitDate: 2022-07-18 00:24:31 +0000&#13;<br>
&#13;<br>
&nbsp;&nbsp;&nbsp; usr.bin/cksum: localize _total variables.&#13;<br>
---&#13;<br>
 usr.bin/cksum/crc.c&nbsp;&nbsp;&nbsp; | 2 +-&#13;<br>
 usr.bin/cksum/crc32.c&nbsp; | 2 +-&#13;<br>
 usr.bin/cksum/extern.h | 3 ---&#13;<br>
 3 files changed, 2 insertions(+), 5 deletions(-)&#13;<br>
&#13;<br>
diff --git a/usr.bin/cksum/crc.c b/usr.bin/cksum/crc.c&#13;<br>
index e110111084b7..b7285132e9b9 100644&#13;<br>
--- a/usr.bin/cksum/crc.c&#13;<br>
+++ b/usr.bin/cksum/crc.c&#13;<br>
@@ -108,7 +108,7 @@ static const uint32_t crctab[] = {&#13;<br>
&nbsp; * locations to store the crc and the number of bytes read.&nbsp; It returns 0 on&#13;<br>
&nbsp; * success and 1 on failure.&nbsp; Errno is set on failure.&#13;<br>
&nbsp; */&#13;<br>
-uint32_t crc_total = ~0;&#9;&#9;/* The crc over a number of files. */&#13;<br>
+static uint32_t crc_total = ~0;&#9;&#9;/* The crc over a number of files. */&#13;<br>
 &#13;<br>
 int&#13;<br>
 crc(int fd, uint32_t *cval, off_t *clen)&#13;<br>
diff --git a/usr.bin/cksum/crc32.c b/usr.bin/cksum/crc32.c&#13;<br>
index cadbc17b69bb..4389969716c3 100644&#13;<br>
--- a/usr.bin/cksum/crc32.c&#13;<br>
+++ b/usr.bin/cksum/crc32.c&#13;<br>
@@ -95,7 +95,7 @@ static const uint32_t crctab[256] = {&#13;<br>
 &#9;0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,&#13;<br>
 };&#13;<br>
 &#13;<br>
-uint32_t crc32_total = 0;&#13;<br>
+static uint32_t crc32_total = 0;&#13;<br>
 &#13;<br>
 int&#13;<br>
 crc32(int fd, uint32_t *cval, off_t *clen)&#13;<br>
diff --git a/usr.bin/cksum/extern.h b/usr.bin/cksum/extern.h&#13;<br>
index 43a31db704c7..ce18531d0f13 100644&#13;<br>
--- a/usr.bin/cksum/extern.h&#13;<br>
+++ b/usr.bin/cksum/extern.h&#13;<br>
@@ -34,9 +34,6 @@&#13;<br>
 &#13;<br>
 #include &lt;sys/cdefs.h&gt;&#13;<br>
 &#13;<br>
-extern uint32_t crc_total;&#13;<br>
-extern uint32_t crc32_total;&#13;<br>
-&#13;<br>
 __BEGIN_DECLS&#13;<br>
 int&#9;crc(int, uint32_t *, off_t *);&#13;<br>
 void&#9;pcrc(char *, uint32_t, off_t);&#13;<br>
&#13;<br>
</p>
</blockquote></div><br></div>