Changeset 1088:1d1a20a0779d in freeDiameter for extensions/test_app
- Timestamp:
- May 5, 2013, 4:25:27 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_app/ta_cli.c
r930 r1088 46 46 static struct session_handler * ta_cli_reg = NULL; 47 47 48 struct ta_mess_info{48 struct sess_state { 49 49 int32_t randval; /* a random value to store in Test-AVP */ 50 50 struct timespec ts; /* Time of sending the message */ … … 54 54 static void ta_cb_ans(void * data, struct msg ** msg) 55 55 { 56 struct ta_mess_info* mi = NULL;56 struct sess_state * mi = NULL; 57 57 struct timespec ts; 58 58 struct session * sess; … … 177 177 struct avp * avp; 178 178 union avp_value val; 179 struct ta_mess_info* mi = NULL, *svg;179 struct sess_state * mi = NULL, *svg; 180 180 struct session *sess = NULL; 181 181 … … 191 191 192 192 /* Create the random value to store with the session */ 193 mi = malloc(sizeof(struct ta_mess_info));193 mi = malloc(sizeof(struct sess_state)); 194 194 if (mi == NULL) { 195 195 fd_log_debug("malloc failed: %s", strerror(errno)); … … 265 265 int ta_cli_init(void) 266 266 { 267 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, free, NULL) );267 CHECK_FCT( fd_sess_handler_create(&ta_cli_reg, (void *)free, NULL, NULL) ); 268 268 269 269 CHECK_FCT( fd_event_trig_regcb(ta_conf->signal, "test_app.cli", ta_cli_test_message ) );
Note: See TracChangeset
for help on using the changeset viewer.