Browse code

- bug fixed - all calbacks return as parameter a pointer to the registered param, instead of the param itself (to allow you to modify the param). looks like fifo_callback wasn't updated (probably my fault)

Bogdan-Andrei Iancu authored on 11/02/2004 11:27:58
Showing 1 changed files
... ...
@@ -541,12 +541,12 @@ static void fifo_callback( struct cell *t, int type, struct tmcb_params *ps )
541 541
 	DBG("!!!!! ref_counter: %d\n", t->ref_count);
542 542
 
543 543
 	DBG("DEBUG: fifo UAC completed with status %d\n", ps->code);
544
-	if (!ps->param) {
544
+	if (!*ps->param) {
545 545
 		LOG(L_INFO, "INFO: fifo UAC completed with status %d\n", ps->code);
546 546
 		return;
547 547
 	}
548 548
 
549
-	filename=(char *)(ps->param);
549
+	filename=(char *)(*ps->param);
550 550
 	if (ps->rpl==FAKED_REPLY) {
551 551
 		get_reply_status( &text, ps->rpl, ps->code);
552 552
 		if (text.s==0) {
... ...
@@ -570,7 +570,7 @@ static void fifo_callback( struct cell *t, int type, struct tmcb_params *ps )
570 570
 	}
571 571
 	DBG("DEBUG: fifo_callback sucesssfuly completed\n");
572 572
 done:
573
-	shm_free(ps->param);
573
+	shm_free(filename);
574 574
 }
575 575
 
576 576