summaryrefslogtreecommitdiff
path: root/news/nn/files/patch-nn.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2023-12-07 19:43:29 +0000
committerBrooks Davis <brooks@FreeBSD.org>2023-12-08 23:29:38 +0000
commit1d254d487260e6e940a171aa0ab0d658b1a13407 (patch)
treef76be1550d82aa3a2d59186b059718b040bd286f /news/nn/files/patch-nn.c
parenttextproc/msort: remove unnecessicary sbrk use (diff)
news/nn: remove sbrk use
It was used to report a heap size but this is inaccurate. Just patch it out for now.
Diffstat (limited to '')
-rw-r--r--news/nn/files/patch-nn.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/news/nn/files/patch-nn.c b/news/nn/files/patch-nn.c
new file mode 100644
index 000000000000..46f34fdd9f9c
--- /dev/null
+++ b/news/nn/files/patch-nn.c
@@ -0,0 +1,18 @@
+--- nn.c.orig
++++ nn.c
+@@ -74,7 +74,6 @@
+ extern int seq_cross_filtering;
+ extern char *news_active;
+ extern long unread_articles;
+-extern long initial_memory_break;
+ extern int first_time_user;
+ extern int also_cross_postings;
+
+@@ -745,7 +744,6 @@
+ int say_welcome = 0, cmd;
+ flag_type access_mode = 0;
+ char *mask = NULL;
+- initial_memory_break = (long) sbrk(0);
+
+ #ifdef USE_MALLOC_H
+