sys-fs/tux3progs: update gcc 4.4 patch

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1219 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2009-05-17 21:03:23 +00:00
parent e635495a78
commit ab6b0f3f60
3 changed files with 30 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ Date: 2009-05-17
Initial Package Version: changeset cb5655728089
Origin: hirofumi
Upstream Status: accepted
Description: fix gcc 4.4 build
Description: make it build with gcc 4.4
diff -Naur tux3.orig/user/buffer.c tux3/user/buffer.c
--- tux3.orig/user/buffer.c 2009-05-17 20:13:43.440868934 +0000
@@ -17,6 +17,30 @@ diff -Naur tux3.orig/user/buffer.c tux3/user/buffer.c
buffers_allocation_failure:
warn("Unable to pre-allocate buffers. Using on demand allocation for buffers");
return err;
diff -Naur tux3.orig/user/filemap.c tux3/user/filemap.c
--- tux3.orig/user/filemap.c 2009-05-17 20:08:53.666087715 +0000
+++ tux3/user/filemap.c 2009-05-17 21:00:44.090339498 +0000
@@ -174,7 +174,7 @@
error("usage: %s <volname>", argv[0]);
char *name = argv[1];
int fd = open(name, O_CREAT|O_TRUNC|O_RDWR, S_IRWXU);
- ftruncate(fd, 1 << 24);
+ assert(!ftruncate(fd, 1 << 24));
u64 size = 0;
if (fdsize64(fd, &size))
error("fdsize64 failed for '%s' (%s)", name, strerror(errno));
diff -Naur tux3.orig/user/inode.c tux3/user/inode.c
--- tux3.orig/user/inode.c 2009-05-17 20:08:53.666087715 +0000
+++ tux3/user/inode.c 2009-05-17 21:00:56.732117020 +0000
@@ -298,7 +298,7 @@
int err = 0;
char *name = argv[1];
int fd = open(name, O_CREAT|O_TRUNC|O_RDWR, S_IRWXU);
- ftruncate(fd, 1 << 24);
+ assert(!ftruncate(fd, 1 << 24));
u64 size = 0;
if (fdsize64(fd, &size))
error("fdsize64 failed for '%s' (%s)", name, strerror(errno));
diff -Naur tux3.orig/user/xattr.c tux3/user/xattr.c
--- tux3.orig/user/xattr.c 2009-05-17 20:08:53.673031004 +0000
+++ tux3/user/xattr.c 2009-05-17 20:54:32.426118888 +0000