add a cast to initialisation of mask
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 May 1998 13:27:55 +0000 (13:27 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 22 May 1998 13:27:55 +0000 (13:27 +0000)
access.c

index 046d5e3..f176343 100644 (file)
--- a/access.c
+++ b/access.c
@@ -34,7 +34,7 @@ static int match_hostname(char *host, char *tok)
 static int match_address(char *addr, char *tok)
 {
        char *p;
 static int match_address(char *addr, char *tok)
 {
        char *p;
-       unsigned long a, t, mask = ~0;
+       unsigned long a, t, mask = (unsigned long)~0;
 
        if (!addr || !*addr) return 0;
 
 
        if (!addr || !*addr) return 0;