diff options
| author | John Vogel <jvogel@stygian.me> | 2024-12-14 13:54:01 -0500 |
|---|---|---|
| committer | John Vogel <jvogel@stygian.me> | 2024-12-14 13:54:01 -0500 |
| commit | c6f27c7035b185bac7256a329a620b8f9ea72227 (patch) | |
| tree | ec136442232ed8052f15af8baa4699ce38e6cad4 /cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch | |
| parent | 05e1d5340bd967a2e898341ffa02cabe1b39e098 (diff) | |
| download | forked-aports-c6f27c7035b185bac7256a329a620b8f9ea72227.tar.gz | |
local/cvs-fast-export: new aport
Diffstat (limited to 'cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch')
| -rw-r--r-- | cvs-fast-export/0003-xalloc.xmalloc-argument-cleanup.patch | 28 |
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 + |
