Commit 3e3ba3f4 authored by Simon Morlat's avatar Simon Morlat

fix compil warning

parent 536ad766
......@@ -1180,9 +1180,9 @@ stunRand(void)
}
#elif defined(__MACH__)
{
int fd=open("/dev/random",O_RDONLY);
read(fd,&tick,sizeof(tick));
closesocket(fd);
int fd=open("/dev/random",O_RDONLY);
int err=read(fd,&tick,sizeof(tick));
closesocket(fd);
}
#elif defined(__GNUC__) && ( defined(__i686__) || defined(__i386__) )
asm("rdtsc" : "=A" (tick));
......@@ -1218,7 +1218,7 @@ stunRand(void)
closesocket(fd);
return random();
}
read(fd,&tick,sizeof(tick));
e=read(fd,&tick,sizeof(tick));
closesocket(fd);
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment