summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorfcolin2006-06-02 14:50:40 +0000
committerfcolin2006-06-02 14:50:40 +0000
commit442107b69be55cd0ab0d7c8554096d9d20c37d08 (patch)
tree0167da856ba6153b2076304c45df17a83304695a /src/ivy.c
parent1f3c03814fc2939a234232229a7127cdc706c470 (diff)
downloadivy-c-442107b69be55cd0ab0d7c8554096d9d20c37d08.zip
ivy-c-442107b69be55cd0ab0d7c8554096d9d20c37d08.tar.gz
ivy-c-442107b69be55cd0ab0d7c8554096d9d20c37d08.tar.bz2
ivy-c-442107b69be55cd0ab0d7c8554096d9d20c37d08.tar.xz
correction d'un petit pb dans la generation de l'appID ( signe - )
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c4
1 files changed, 2 insertions, 2 deletions
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,