patch-2.1.92 linux/drivers/isdn/sc/event.c
Next file: linux/drivers/isdn/sc/hardware.h
Previous file: linux/drivers/isdn/sc/debug.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed Apr 1 16:21:04 1998
- Orig file:
v2.1.91/linux/drivers/isdn/sc/event.c
- Orig date:
Thu Feb 27 10:57:30 1997
diff -u --recursive --new-file v2.1.91/linux/drivers/isdn/sc/event.c linux/drivers/isdn/sc/event.c
@@ -1,5 +1,5 @@
/*
- * $Id: event.c,v 1.3 1997/02/11 22:53:41 fritz Exp $
+ * $Id: event.c,v 1.4 1997/10/09 22:30:58 fritz Exp $
* Copyright (C) 1996 SpellCaster Telecommunications Inc.
*
* This program is free software; you can redistribute it and/or modify
@@ -62,10 +62,16 @@
if (Data != NULL){
pr_debug("%s: Event data: %s\n", adapter[card]->devicename,
Data);
- if (event == ISDN_STAT_ICALL)
- memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
- else
- strcpy(cmd.parm.num, Data);
+ switch (event) {
+ case ISDN_STAT_BSENT:
+ memcpy(&cmd.parm.length, Data, sizeof(cmd.parm.length));
+ break;
+ case ISDN_STAT_ICALL:
+ memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
+ break;
+ default:
+ strcpy(cmd.parm.num, Data);
+ }
}
cmd.command = event;
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]