-/* $Id: capifunc.c,v 1.61.4.2 2004/05/05 16:09:25 armin Exp $
+/* $Id: capifunc.c,v 1.61.4.5 2004/08/27 20:10:12 armin Exp $
*
* ISDN interface module for Eicon active cards DIVA.
* CAPI Interface common functions
word length = 12, dlength = 0;
byte *write;
CAPI_MSG msg;
- byte *string = 0;
+ byte *string = NULL;
va_list ap;
diva_os_message_buffer_s *dmb;
diva_card *card = NULL;
write_end:
diva_os_leave_spin_lock(&api_lock, &old_irql, "send message");
- diva_os_free_message_buffer(dmb);
+ if (retval == CAPI_NOERROR)
+ diva_os_free_message_buffer(dmb);
return retval;
}
req.didd_notify.e.Rc =
IDI_SYNC_REQ_DIDD_REGISTER_ADAPTER_NOTIFY;
req.didd_notify.info.callback = (void *)didd_callback;
- req.didd_notify.info.context = 0;
+ req.didd_notify.info.context = NULL;
DAdapter.request((ENTITY *) & req);
if (req.didd_notify.e.Rc != 0xff) {
stop_dbg();