The following little file

        #include <netinet/in.h>

        uint16_t f(uint16_t in) {
                return htons(in);
        }

, when compiled with -Wconversion:

        cc -Wconversion -c t.c

, gives the following mistery warning:

        t.c: In function `f':
        t.c:4: warning: passing arg 1 of `__bswap16' with different width due to 
prototype

The compiler is:
        Using built-in specs.
        Configured with: FreeBSD/i386 system compiler
        Thread model: posix
        gcc version 3.2.1 [FreeBSD] 20021119 (release)

Any clues? Thanks!

        -mi



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to