mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
16f1f17d67
Add three patches: patch-aa: If you use CHUNK_INPUT without this patch, you end up with many error messages xferstats in free(): warning: modified (chunk-) pointer (or you may want to fix chunks...) patch-ab: If number of "Files Transmitted" is divisible by CHUNK_INPUT without this patch, you end up with error "No data to process." instead of results. patch-ac: Typical beginner's bug in C: feof() is used before read function, where its result is not tested then. Without this patch the last line is counted twice. PR: 44015 Submitted by: Cejka Rudolf <cejkar@fit.vutbr.cz>
11 lines
362 B
Plaintext
11 lines
362 B
Plaintext
--- xferstats.x Thu Jan 11 19:35:18 2001
|
|
+++ xferstats.h Thu Jan 11 19:35:52 2001
|
|
@@ -39,6 +39,7 @@
|
|
|
|
/* glibc's malloc is so damn efficient, chunks actually slow it down. so only
|
|
* use g_mem_chunks on non-glibc systems */
|
|
+#define __GLIBC__
|
|
#ifdef __GLIBC__
|
|
# define G_MEM_CHUNK_ALLOC(bar) g_malloc(bar)
|
|
# define G_MEM_CHUNK_ALLOC0(bar) g_malloc0(bar)
|