linamh/sys-fs/tux3progs/files/tux3-gcc44-1.patch

20 lines
682 B
Diff
Raw Normal View History

Submitted By: Mario Fetka (mario dot fetka at gmail dot com)
Date: 2009-05-17
Initial Package Version: changeset cb5655728089
Origin: hirofumi
Upstream Status: accepted
Description: correct gcc 4.4 compile error
diff -Naur tux3.orig/user/buffer.c tux3/user/buffer.c
--- tux3.orig/user/buffer.c 2009-05-17 20:13:43.440868934 +0000
+++ tux3/user/buffer.c 2009-05-17 19:19:25.410186739 +0000
@@ -475,7 +475,7 @@
data_allocation_failure:
warn("Error: %s unable to allocate space for buffer data", strerror(err));
- free(buffers);
+ free(prealloc_heads);
buffers_allocation_failure:
warn("Unable to pre-allocate buffers. Using on demand allocation for buffers");
return err;