Module: sip-router Branch: carstenbock/ims Commit: ec07538c4b253fe1b89e80254ee18e2d3f7f9ad1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ec07538c...
Author: Carsten Bock carsten@bock.info Committer: Carsten Bock carsten@bock.info Date: Fri Jan 21 16:05:04 2011 +0100
- Fixed some compile warning for CDP on 64Bit
---
modules/cdp/sem.h | 2 +- modules/cdp/utils.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/cdp/sem.h b/modules/cdp/sem.h index db05fc5..63a6aab 100644 --- a/modules/cdp/sem.h +++ b/modules/cdp/sem.h @@ -71,7 +71,7 @@ do {\ sem_ptr=shm_malloc(sizeof(gen_sem_t));\ if (!sem_ptr){\ - LOG(L_ERR,"Error allocating %d bytes of shm!\n",sizeof(gen_sem_t));\ + LOG(L_ERR,"Error allocating %lu bytes of shm!\n",(unsigned long)sizeof(gen_sem_t));\ goto out_of_memory;\ } \ if (sem_init(sem_ptr, 1, value)<0) {\ diff --git a/modules/cdp/utils.h b/modules/cdp/utils.h index fe05bd5..987a45a 100644 --- a/modules/cdp/utils.h +++ b/modules/cdp/utils.h @@ -89,9 +89,9 @@
#ifndef LOG_NO_MEM #define LOG_NO_MEM(mem_type,data_len) \ - LOG(L_ERR,"ERROR:%s:%s()[%d]: Out of %s memory allocating %d bytes\n",\ + LOG(L_ERR,"ERROR:%s:%s()[%d]: Out of %s memory allocating %lu bytes\n",\ __FILE__,__FUNCTION__,__LINE__, \ - mem_type,data_len); + mem_type,(long unsigned)data_len); #endif