From 476a0269b013089c94f49c530e780f0f9f8b6ec0 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 26 Nov 2008 22:27:10 +0000 Subject: [PATCH] 64 bit compiler fix --- mbnntp/mkftnhdr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbnntp/mkftnhdr.c b/mbnntp/mkftnhdr.c index 2224a8f6..1b0fe947 100644 --- a/mbnntp/mkftnhdr.c +++ b/mbnntp/mkftnhdr.c @@ -4,7 +4,7 @@ * Purpose ...............: MBSE BBS Mail Gate * ***************************************************************************** - * Copyright (C) 1997-2007 + * Copyright (C) 1997-2008 * * Michiel Broek FIDO: 2:280/2802 * 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)) nid = atoul(tmp->name); else - nid = ULONG_MAX; - if (nid == ULONG_MAX) { + nid = 0xffffffff; + if (nid == 0xffffffff) { hash_update_s(&nid, tmp->name); } else ftnorigin = 1; @@ -189,8 +189,8 @@ int ftnmsgid(char *msgid, char **s, unsigned int *n, char *areaname) if (strspn(l,"0123456789") == strlen(l)) nid = atoul(l); else - nid = ULONG_MAX; - if (nid == ULONG_MAX) + nid = 0xffffffff; + if (nid == 0xffffffff) hash_update_s(&nid,l); *s=xstrcpy(r); }