didn't compile with old kernel source
This commit is contained in:
parent
6f750d664d
commit
a99a31b913
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: isdnctrl.c,v 1.31 1998/11/24 18:18:57 paul Exp $
|
/* $Id: isdnctrl.c,v 1.32 1998/12/23 12:51:44 paul Exp $
|
||||||
* ISDN driver for Linux. (Control-Utility)
|
* ISDN driver for Linux. (Control-Utility)
|
||||||
*
|
*
|
||||||
* Copyright 1994,95 by Fritz Elfert (fritz@wuemaus.franken.de)
|
* Copyright 1994,95 by Fritz Elfert (fritz@wuemaus.franken.de)
|
||||||
|
@ -21,6 +21,9 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Log: isdnctrl.c,v $
|
* $Log: isdnctrl.c,v $
|
||||||
|
* Revision 1.32 1998/12/23 12:51:44 paul
|
||||||
|
* didn't compile with old kernel source
|
||||||
|
*
|
||||||
* Revision 1.31 1998/11/24 18:18:57 paul
|
* Revision 1.31 1998/11/24 18:18:57 paul
|
||||||
* detect kernel < 2.0.36; warn if dialmode is accessed with older kernels
|
* detect kernel < 2.0.36; warn if dialmode is accessed with older kernels
|
||||||
*
|
*
|
||||||
|
@ -411,7 +414,9 @@ static void listif(int isdnctrl, char *name, int errexit)
|
||||||
char nn[1024];
|
char nn[1024];
|
||||||
|
|
||||||
memset(&cfg, 0, sizeof cfg); /* clear in case of older kernel */
|
memset(&cfg, 0, sizeof cfg); /* clear in case of older kernel */
|
||||||
|
#ifdef ISDN_NET_DM_OFF
|
||||||
cfg.dialmode = 0xDEADBEEF;
|
cfg.dialmode = 0xDEADBEEF;
|
||||||
|
#endif
|
||||||
strcpy(cfg.name, name);
|
strcpy(cfg.name, name);
|
||||||
if (ioctl(isdnctrl, IIOCNETGCF, &cfg) < 0) {
|
if (ioctl(isdnctrl, IIOCNETGCF, &cfg) < 0) {
|
||||||
if (errexit) {
|
if (errexit) {
|
||||||
|
|
Loading…
Reference in New Issue