summaryrefslogtreecommitdiff
path: root/cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch')
-rw-r--r--cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch b/cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch
new file mode 100644
index 0000000..4554d5c
--- /dev/null
+++ b/cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch
@@ -0,0 +1,28 @@
+From 93d2ed1814d2c9e8425ba318c81c36db5ff4b58f Mon Sep 17 00:00:00 2001
+From: "Eric S. Raymond" <esr@thyrsus.com>
+Date: Tue, 15 Oct 2024 14:06:43 -0400
+Subject: [PATCH 3/4] xalloc.xmalloc argument cleanup.
+
+Problems reveaked by -Werror.
+---
+ import.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/import.c b/import.c
+index 15f1134..2a13c09 100644
+--- a/import.c
++++ b/import.c
+@@ -410,8 +410,8 @@ void analyze_masters(int argc, const char *argv[], import_options_t *analyzer,
+ }
+ forest->filecount = total_files;
+
+- generators = xcalloc(sizeof(generator_t), total_files, "Generators");
+- sorted_files = xmalloc(sizeof(rev_file) * total_files, "sorted_files");
++ generators = xcalloc(total_files, sizeof(generator_t), "Generators");
++ sorted_files = xcalloc(total_files, sizeof(rev_file), "sorted_files");
+ cvs_masters = xcalloc(total_files, sizeof(cvs_master), "cvs_masters");
+ rev_masters = xmalloc(sizeof(rev_master) * total_files, "rev_masters");
+ fn_n = total_files;
+--
+2.47.1
+