Module: sip-router
Branch: carstenbock/ims
Commit: db4982cb25ea3b34c35b7e4bd65a8e1027fa0481
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=db4982c…
Author: Carsten Bock <carsten(a)bock.info>
Committer: Carsten Bock <carsten(a)bock.info>
Date: Fri Jan 21 16:12:16 2011 +0100
- fixed some more compile on 64Bit
---
modules/ecscf/dlg_state.c | 4 ++--
modules/ecscf/lrf.c | 4 ++--
modules/ecscf/release_call.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/ecscf/dlg_state.c b/modules/ecscf/dlg_state.c
index 269ca04..761b158 100644
--- a/modules/ecscf/dlg_state.c
+++ b/modules/ecscf/dlg_state.c
@@ -286,8 +286,8 @@ e_dialog* new_e_dialog(str call_id,str aor, enum e_dialog_direction
dir)
if (!e_dialog_count_increment()) return 0;
d = shm_malloc(sizeof(e_dialog));
if (!d) {
- LOG(L_ERR,"ERR:"M_NAME":new_e_dialog(): Unable to alloc %d
bytes\n",
- sizeof(e_dialog));
+ LOG(L_ERR,"ERR:"M_NAME":new_e_dialog(): Unable to alloc %lu
bytes\n",
+ (unsigned long)sizeof(e_dialog));
goto error;
}
memset(d,0,sizeof(e_dialog));
diff --git a/modules/ecscf/lrf.c b/modules/ecscf/lrf.c
index 092ec76..7a7495d 100644
--- a/modules/ecscf/lrf.c
+++ b/modules/ecscf/lrf.c
@@ -429,8 +429,8 @@ int send_options_req(str req_uri, str location, str service, struct
initial_tr *
char * p = (char*)shm_malloc(sizeof(struct
initial_tr)+sizeof(char)*inv_tr->callid.len);
if(!p){
- LOG(L_ERR,"ERR:"M_NAME":send_options_req: Error allocating cb_par: %d
bytes\n",
- sizeof(struct initial_tr)+sizeof(char)*inv_tr->callid.len);
+ LOG(L_ERR,"ERR:"M_NAME":send_options_req: Error allocating cb_par: %lu
bytes\n",
+ (unsigned long)sizeof(struct initial_tr)+sizeof(char)*inv_tr->callid.len);
goto error;
}
cb_par = (struct initial_tr *)p;
diff --git a/modules/ecscf/release_call.c b/modules/ecscf/release_call.c
index a4217b4..8f738ec 100644
--- a/modules/ecscf/release_call.c
+++ b/modules/ecscf/release_call.c
@@ -493,7 +493,7 @@ int send_request(str method,str reqbuf,dlg_t *d,transaction_cb cb,
enum e_dialog
* and the ACK is never replied it would be a bug if i did*/
cbp = shm_malloc(sizeof(enum e_dialog_direction));
if (!cbp){
- LOG(L_ERR,"ERR:"M_NAME":send_request(): error allocating %d
bytes\n",sizeof(enum e_dialog_direction));
+ LOG(L_ERR,"ERR:"M_NAME":send_request(): error allocating %lu
bytes\n",(unsigned long)sizeof(enum e_dialog_direction));
return 0;
}
*cbp=dir;