From 328cf31cb3202a6a68f1bed9b75000f64d8d53f5 Mon Sep 17 00:00:00 2001 From: Chris Parker Date: Wed, 11 Jul 2007 18:04:56 +0000 Subject: [PATCH] UINT4 to uint32_t, so we can be C99 at least git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5527 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../event_handlers/mod_radius_cdr/mod_radius_cdr.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c b/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c index b8a846a14c..ef01432825 100644 --- a/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c +++ b/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c @@ -30,8 +30,6 @@ * */ -#define _BSD_SOURCE 1 - #include #include #include @@ -130,8 +128,8 @@ static switch_status_t my_on_ring(switch_core_session_t *session) rc_handle *rad_config; int retval = 0; VALUE_PAIR *send = NULL; - UINT4 client_port = 0; - UINT4 status_type = PW_STATUS_START; + uint32_t client_port = 0; + uint32_t status_type = PW_STATUS_START; char *uuid_str; @@ -249,14 +247,14 @@ static switch_status_t my_on_hangup(switch_core_session_t *session) rc_handle *rad_config; int retval = 0; VALUE_PAIR *send = NULL; - UINT4 client_port = 0; - UINT4 status_type = PW_STATUS_STOP; + uint32_t client_port = 0; + uint32_t status_type = PW_STATUS_STOP; switch_time_t callstartdate = 0; switch_time_t callanswerdate = 0; switch_time_t callenddate = 0; switch_time_t calltransferdate = 0; switch_time_t billusec = 0; - UINT4 billsec = 0; + uint32_t billsec = 0; char *uuid_str; @@ -375,7 +373,7 @@ static switch_status_t my_on_hangup(switch_core_session_t *session) } if (rc_avpair_add(rad_config, &send, PW_FS_BILLUSEC, &billusec, -1, PW_FS_PEC) == NULL) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, - "failed adding Freeswitch-Billusec: %u\n", (UINT4)billusec); + "failed adding Freeswitch-Billusec: %u\n", (uint32_t)billusec); rc_destroy(rad_config); return SWITCH_STATUS_TERM; }