Package: fl-cow
Version: 0.6-3
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd


Hi,

the current version fails to build on GNU/kFreeBSD.

On GNU/kFreeBSD the mode_t is a short int.
The 3rd optional argument is promoted to int,
it have to be accessed as int in va_arg macro.

See EXAMPLE part of "man va_arg" or
http://www.gnu.org/s/libc/manual/html_node/Calling-Variadics.html

It would also be nice if you can ask upstream
to include this change.

Thanks in advance

                        Petr

--- fl-cow/fl-cow.c
+++ fl-cow/fl-cow.c
@@ -71,7 +71,7 @@
                        exit(1); \
                } \
                va_start(args, flags); \
-               mode = va_arg(args, mode_t); \
+               mode = va_arg(args, int); \
                va_end(args); \
                DPRINTF("%s[%p](%s, 0x%x, 0x%x)\n", __FUNCTION__, flcow_##sym, 
name, \
                                flags, mode); \




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to