Using sys_errlist[] is deprecated.
This commit is contained in:
parent
281b72c568
commit
4677525d74
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: isdn_dwabclib.c,v 1.2 2001/03/01 14:59:15 paul Exp $
|
/* $Id: isdn_dwabclib.c,v 1.3 2003/03/11 14:03:43 paul Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -16,6 +16,9 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Log: isdn_dwabclib.c,v $
|
* $Log: isdn_dwabclib.c,v $
|
||||||
|
* Revision 1.3 2003/03/11 14:03:43 paul
|
||||||
|
* Using sys_errlist[] is deprecated.
|
||||||
|
*
|
||||||
* Revision 1.2 2001/03/01 14:59:15 paul
|
* Revision 1.2 2001/03/01 14:59:15 paul
|
||||||
* Various patches to fix errors when using the newest glibc,
|
* Various patches to fix errors when using the newest glibc,
|
||||||
* replaced use of insecure tempnam() function
|
* replaced use of insecure tempnam() function
|
||||||
|
@ -76,8 +79,7 @@ err:;
|
||||||
if(sock > -1)
|
if(sock > -1)
|
||||||
close(sock);
|
close(sock);
|
||||||
|
|
||||||
if(errno < sys_nerr)
|
sprintf(em + strlen(em)," (%s)",strerror(errno));
|
||||||
sprintf(em + strlen(em)," (%s)",sys_errlist[errno]);
|
|
||||||
|
|
||||||
return(-errno);
|
return(-errno);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue