git: a32417780081 - main - news/nntp: fix a compiler warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Sep 2022 06:03:45 UTC
The branch main has been updated by dinoex:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a3241778008152ee490b7762de0f962c8ac40118
commit a3241778008152ee490b7762de0f962c8ac40118
Author: Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2022-09-27 06:03:31 +0000
Commit: Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2022-09-27 06:03:31 +0000
news/nntp: fix a compiler warning
---
news/nntp/files/patch-xfer-nntpxfer.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/news/nntp/files/patch-xfer-nntpxfer.c b/news/nntp/files/patch-xfer-nntpxfer.c
new file mode 100644
index 000000000000..94de45437f4d
--- /dev/null
+++ b/news/nntp/files/patch-xfer-nntpxfer.c
@@ -0,0 +1,18 @@
+--- xfer/nntpxfer.c.orig 1996-01-09 07:28:03 UTC
++++ xfer/nntpxfer.c
+@@ -547,12 +556,14 @@ char *articleid;
+ int len;
+ #endif
+ char id[BUFSIZ];
++#ifndef CNEWS
+ char *p;
++#endif
+
+ /* remove any case sensitivity */
+ (void) strcpy(id, articleid);
+- p = id;
+ #ifndef CNEWS
++ p = id;
+ while (*p)
+ {
+ if (isupper(*p))