create new error messages for isdnrep

This commit is contained in:
luethje 1997-09-07 00:43:06 +00:00
parent 76607feec4
commit 7e1a355e40
3 changed files with 25 additions and 5 deletions

View File

@ -1,4 +1,4 @@
## $Id: Makefile.in,v 1.30 1997/06/21 13:48:55 fritz Exp $
## $Id: Makefile.in,v 1.31 1997/09/07 00:43:06 luethje Exp $
##
## ISDN accounting for isdn4linux.
##
@ -19,6 +19,9 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Log: Makefile.in,v $
## Revision 1.31 1997/09/07 00:43:06 luethje
## create new error messages for isdnrep
##
## Revision 1.30 1997/06/21 13:48:55 fritz
## Create ./bin if necessary
##
@ -240,7 +243,7 @@ SERVICEFILE = /etc/services
# DON'T EDIT BELOW THIS LINE
######################################################################
VERSION = 2.99.23
VERSION = 2.99.24
ifeq ($(POSTGRES),1)
DEFS += -DPOSTGRES

View File

@ -1,4 +1,4 @@
/* $Id: processor.c,v 1.10 1997/08/22 12:31:21 fritz Exp $
/* $Id: processor.c,v 1.11 1997/09/07 00:43:12 luethje Exp $
*
* ISDN accounting for isdn4linux. (log-module)
*
@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: processor.c,v $
* Revision 1.11 1997/09/07 00:43:12 luethje
* create new error messages for isdnrep
*
* Revision 1.10 1997/08/22 12:31:21 fritz
* isdnlog now handles chargeint/non-chargeint Kernels automatically.
* Manually setting of CONFIG_ISDNLOG_OLD_I4L no more needed.
@ -3383,7 +3386,7 @@ static void processctrl(int card, char *s)
register char *ps = s;
register int i, c;
register int wegchan; /* fuer gemakelte */
auto int dialin, type, cref = -1, creflen, version;
auto int dialin, type = 0, cref = -1, creflen, version;
static int tei = BROADCAST, sapi = 0, net = 1, firsttime = 1;
auto char sx[BUFSIZ], s2[BUFSIZ];
static char last[BUFSIZ];

View File

@ -1,4 +1,4 @@
/* $Id: isdnrep.c,v 1.30 1997/07/22 22:36:17 luethje Exp $
/* $Id: isdnrep.c,v 1.31 1997/09/07 00:43:22 luethje Exp $
*
* ISDN accounting for isdn4linux. (Report-module)
*
@ -20,6 +20,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: isdnrep.c,v $
* Revision 1.31 1997/09/07 00:43:22 luethje
* create new error messages for isdnrep
*
* Revision 1.30 1997/07/22 22:36:17 luethje
* isdnrep: Use " " for blanks
* isdnctrl: Add the option "reset"
@ -2616,6 +2619,11 @@ static int set_dir_entries(char *directory, int (*set_fct)(const char *, const c
closedir(dptr);
}
else
{
print_msg(PRT_ERR,"Can not open directory `%s': %s!\n", directory, strerror(errno));
return -1;
}
}
return 0;
@ -2637,7 +2645,10 @@ static int set_vbox_entry(const char *path, const char *file)
sprintf(string,"%s%c%s",path,C_SLASH,file);
if ((fp = fopen(string,"r")) == NULL)
{
print_msg(PRT_ERR,"Can not open file `%s': %s!\n", string, strerror(errno));
return -1;
}
fread(&ptr,sizeof(vaheader_t),1,fp);
fclose(fp);
@ -2720,7 +2731,10 @@ static int set_mgetty_entry(const char *path, const char *file)
sprintf(string,"%s%c%s",path,C_SLASH,file);
if (access(string,R_OK))
{
print_msg(PRT_ERR,"Can not open file `%s': %s!\n", string, strerror(errno));
return -1;
}
if ((lptr = (file_list*) calloc(1,sizeof(file_list))) == NULL)
{