add a cast to initialisation of mask

This commit is contained in:
Andrew Tridgell
1998-05-22 13:27:55 +00:00
parent 9add51f18e
commit 505c7ea2bc

View File

@@ -34,7 +34,7 @@ static int match_hostname(char *host, char *tok)
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;