[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] mintlib fix



Another warning fix.

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() */