freebsd-ports/net-p2p/gnunet/files/patch-src_applications_afs_gtkui_statistics.c
Kirill Ponomarev 7bc1a963fc - Fix build on 4-x for kris, who wanted to have such gifts to his
birthday ;)

Reported by:	bento via kris
2004-05-21 07:42:01 +00:00

37 lines
1,005 B
C

--- src/applications/afs/gtkui/statistics.c.orig Fri May 21 09:34:00 2004
+++ src/applications/afs/gtkui/statistics.c Fri May 21 09:34:23 2004
@@ -178,14 +178,14 @@
gfloat ** data) {
long long val;
char * cmh;
- long long cval;
+ long cval;
cmh = getConfigurationOptionValue(sock,
"gnunetd",
"connection-max-hosts");
if (cmh == NULL)
return SYSERR;
- cval = atoll(cmh);
+ cval = atol(cmh);
FREE(cmh);
if (OK != getStatValue(&val,
NULL,
@@ -291,7 +291,7 @@
"MAXNETDOWNBPSTOTAL");
if (available == NULL)
return SYSERR;
- band = atoll(available) * dtime / cronSECONDS;
+ band = atol(available) * dtime / cronSECONDS;
FREE(available);
total -= ltotal;
noise -= lnoise;
@@ -395,7 +395,7 @@
"MAXNETUPBPSTOTAL");
if (available == NULL)
return SYSERR;
- band = atoll(available) * dtime / cronSECONDS;
+ band = atol(available) * dtime / cronSECONDS;
FREE(available);
total -= ltotal;
noise -= lnoise;