64 bit compiler fix

This commit is contained in:
Michiel Broek 2008-11-26 22:27:10 +00:00
parent 4ec2e689dd
commit 476a0269b0

View File

@ -4,7 +4,7 @@
* Purpose ...............: MBSE BBS Mail Gate * Purpose ...............: MBSE BBS Mail Gate
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2007 * Copyright (C) 1997-2008
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -94,8 +94,8 @@ int ftnmsgid(char *msgid, char **s, unsigned int *n, char *areaname)
if (strspn(tmp->name,"0123456789") == strlen(tmp->name)) if (strspn(tmp->name,"0123456789") == strlen(tmp->name))
nid = atoul(tmp->name); nid = atoul(tmp->name);
else else
nid = ULONG_MAX; nid = 0xffffffff;
if (nid == ULONG_MAX) { if (nid == 0xffffffff) {
hash_update_s(&nid, tmp->name); hash_update_s(&nid, tmp->name);
} else } else
ftnorigin = 1; ftnorigin = 1;
@ -189,8 +189,8 @@ int ftnmsgid(char *msgid, char **s, unsigned int *n, char *areaname)
if (strspn(l,"0123456789") == strlen(l)) if (strspn(l,"0123456789") == strlen(l))
nid = atoul(l); nid = atoul(l);
else else
nid = ULONG_MAX; nid = 0xffffffff;
if (nid == ULONG_MAX) if (nid == 0xffffffff)
hash_update_s(&nid,l); hash_update_s(&nid,l);
*s=xstrcpy(r); *s=xstrcpy(r);
} }