Added { } to suppress egcs warnings.
This commit is contained in:
parent
6d87437d57
commit
4ea8154e96
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: conffile.c,v 1.19 1998/05/20 12:22:15 paul Exp $
|
/* $Id: conffile.c,v 1.20 1999/11/03 16:13:36 paul Exp $
|
||||||
*
|
*
|
||||||
* ISDN accounting for isdn4linux.
|
* ISDN accounting for isdn4linux.
|
||||||
*
|
*
|
||||||
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Log: conffile.c,v $
|
* $Log: conffile.c,v $
|
||||||
|
* Revision 1.20 1999/11/03 16:13:36 paul
|
||||||
|
* Added { } to suppress egcs warnings.
|
||||||
|
*
|
||||||
* Revision 1.19 1998/05/20 12:22:15 paul
|
* Revision 1.19 1998/05/20 12:22:15 paul
|
||||||
* More paranoid about freeing pointers.
|
* More paranoid about freeing pointers.
|
||||||
*
|
*
|
||||||
|
@ -801,11 +804,12 @@ static int Compare_Sections(section* sec1, section *sec2, char **variables)
|
||||||
found2++;
|
found2++;
|
||||||
|
|
||||||
if ((++Cnt)%width == 0)
|
if ((++Cnt)%width == 0)
|
||||||
|
{
|
||||||
if(found1 == 0)
|
if(found1 == 0)
|
||||||
found2 = 0;
|
found2 = 0;
|
||||||
else
|
else
|
||||||
exist = 0;
|
exist = 0;
|
||||||
|
}
|
||||||
if (array != NULL)
|
if (array != NULL)
|
||||||
{
|
{
|
||||||
del_Array(array);
|
del_Array(array);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: libtools.c,v 1.9 1998/10/18 20:13:51 luethje Exp $
|
/* $Id: libtools.c,v 1.10 1999/11/03 16:13:36 paul Exp $
|
||||||
* ISDN accounting for isdn4linux.
|
* ISDN accounting for isdn4linux.
|
||||||
*
|
*
|
||||||
* Copyright 1996 by Stefan Luethje (luethje@sl-gw.lake.de)
|
* Copyright 1996 by Stefan Luethje (luethje@sl-gw.lake.de)
|
||||||
|
@ -18,6 +18,9 @@
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Log: libtools.c,v $
|
* $Log: libtools.c,v $
|
||||||
|
* Revision 1.10 1999/11/03 16:13:36 paul
|
||||||
|
* Added { } to suppress egcs warnings.
|
||||||
|
*
|
||||||
* Revision 1.9 1998/10/18 20:13:51 luethje
|
* Revision 1.9 1998/10/18 20:13:51 luethje
|
||||||
* isdnlog: Added the switch -K
|
* isdnlog: Added the switch -K
|
||||||
*
|
*
|
||||||
|
@ -712,11 +715,12 @@ const char *Pathfind(const char *path, const char *name, char *mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strchr(name,C_SLASH) != NULL)
|
if (strchr(name,C_SLASH) != NULL)
|
||||||
|
{
|
||||||
if (!access(name,_mode))
|
if (!access(name,_mode))
|
||||||
return name;
|
return name;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
{
|
{
|
||||||
if ((ptr = getenv(PATH_ENV)) == NULL)
|
if ((ptr = getenv(PATH_ENV)) == NULL)
|
||||||
|
|
Loading…
Reference in New Issue