Module: sip-router
Branch: master
Commit: b8ceb2733682d576d95b98df06328559743c2a69
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b8ceb27…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 23 11:23:36 2010 +0100
kex: get rid of 64b warnings in pkg stats updates
---
modules_k/kex/pkg_stats.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/kex/pkg_stats.c b/modules_k/kex/pkg_stats.c
index 2a04e3d..0ae0569 100644
--- a/modules_k/kex/pkg_stats.c
+++ b/modules_k/kex/pkg_stats.c
@@ -125,7 +125,7 @@ static int pkg_proc_update_used(void *data)
return -1;
if(process_no>=_pkg_proc_stats_no)
return -1;
- _pkg_proc_stats_list[process_no].used = (unsigned int)data;
+ _pkg_proc_stats_list[process_no].used = (unsigned int)(long)data;
return 0;
}
@@ -138,7 +138,7 @@ static int pkg_proc_update_real_used(void *data)
return -1;
if(process_no>=_pkg_proc_stats_no)
return -1;
- _pkg_proc_stats_list[process_no].real_used = (unsigned int)data;
+ _pkg_proc_stats_list[process_no].real_used = (unsigned int)(long)data;
_pkg_proc_stats_list[process_no].available = pkg_available();
return 0;
}