[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] mintlib fix
On Mon, 2008-04-28 at 10:56 +0100, Alan Hourihane wrote:
> Another warning fix.
This one hasn't been applied yet.
Re-attaching.
Alan.
diff --git a/socket/mintsock.h b/socket/mintsock.h
index b7a8ddc..76fe40b 100644
--- a/socket/mintsock.h
+++ b/socket/mintsock.h
@@ -12,7 +12,7 @@
#define SOCKDEV "u:\\dev\\socket"
-#define UN_OFFSET ((short)((struct sockaddr_un *)0)->sun_path)
+#define UN_OFFSET ((short)(int)((struct sockaddr_un *)0)->sun_path)
/* perform a socket system call, via ioctl() */