From c6f27c7035b185bac7256a329a620b8f9ea72227 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Sat, 14 Dec 2024 13:54:01 -0500 Subject: local/cvs-fast-export: new aport --- .../0003-xalloc.xmalloc-argument-cleanup.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch (limited to 'cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch') 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" +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 + -- cgit v1.2.3