From 442107b69be55cd0ab0d7c8554096d9d20c37d08 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 2 Jun 2006 14:50:40 +0000 Subject: correction d'un petit pb dans la generation de l'appID ( signe - ) --- src/ivy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ivy.c') diff --git a/src/ivy.c b/src/ivy.c index 7feffd0..af7cdc9 100644 --- a/src/ivy.c +++ b/src/ivy.c @@ -548,10 +548,10 @@ static unsigned long currentTime() static const char * GenApplicationUniqueIdentifier() { static char appid[2048]; - long curtime; + unsigned long curtime; curtime = currentTime(); srand( curtime ); - sprintf(appid,"%d:%ld:%d",rand(),curtime,ApplicationPort); + sprintf(appid,"%d:%lu:%d",rand(),curtime,ApplicationPort); return appid; } void IvyInit (const char *appname, const char *ready, -- cgit v1.1