isdnlog Version 3.37

fixed some warnings
This commit is contained in:
Andreas Kool 1999-06-26 12:26:35 +00:00
parent 6a85e1c871
commit aa7d0e53c4
4 changed files with 69 additions and 46 deletions

View File

@ -19,6 +19,11 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
## ##
## $Log$ ## $Log$
## Revision 1.89 1999/06/26 10:11:06 akool
## isdnlog Version 3.36
## - EGCS 1.1.2 bug correction from Nima <nima_ghasseminejad@public.uni-hamburg.de>
## - zone-1.11
##
## Revision 1.88 1999/06/21 19:32:08 akool ## Revision 1.88 1999/06/21 19:32:08 akool
## isdnlog Version 3.35 ## isdnlog Version 3.35
## zone data for .nl (many thanks to Paul!) ## zone data for .nl (many thanks to Paul!)
@ -692,7 +697,7 @@ SERVICEFILE = /etc/services
# DON'T EDIT BELOW THIS LINE # DON'T EDIT BELOW THIS LINE
###################################################################### ######################################################################
VERSION = 3.36 VERSION = 3.37
MANPAGES = isdnlog/callerid.conf.5 isdnlog/isdn.conf.5 \ MANPAGES = isdnlog/callerid.conf.5 isdnlog/isdn.conf.5 \
isdnlog/isdnformat.5 isdnlog/isdnlog.5 isdnlog/isdnlog.8 \ isdnlog/isdnformat.5 isdnlog/isdnlog.5 isdnlog/isdnlog.8 \

View File

@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Log$ * $Log$
* Revision 1.70 1999/06/22 19:40:46 akool
* zone-1.1 fixes
*
* Revision 1.69 1999/06/21 19:33:53 akool * Revision 1.69 1999/06/21 19:33:53 akool
* isdnlog Version 3.35 * isdnlog Version 3.35
* zone data for .nl (many thanks to Paul!) * zone data for .nl (many thanks to Paul!)
@ -725,6 +728,7 @@
#include "isdnlog.h" #include "isdnlog.h"
#include "sys/times.h" #include "sys/times.h"
#include "asn1.h" #include "asn1.h"
#include "zone.h"
static int HiSax = 0, hexSeen = 0, uid = UNKNOWN, lfd = 0; static int HiSax = 0, hexSeen = 0, uid = UNKNOWN, lfd = 0;
static char *asnp, *asnm; static char *asnp, *asnm;
@ -3583,7 +3587,7 @@ static void prepareRate(int chan, char **msg, char **tip, int viarep)
auto int l; auto int l;
l = getAreacode(DTAG, call[chan].num[CALLING] + 3, &text); l = getAreacode(49, call[chan].num[CALLING] + 3, &text);
print_msg(PRT_NORMAL, "getAreacode(49,%s,\"%s\")=%d\n", call[chan].num[CALLING] + 3, text, l); print_msg(PRT_NORMAL, "getAreacode(49,%s,\"%s\")=%d\n", call[chan].num[CALLING] + 3, text, l);
if ((get_areacode(call[chan].num[CALLING], &l, C_NO_WARN | C_NO_EXPAND | C_NO_ERROR))) if ((get_areacode(call[chan].num[CALLING], &l, C_NO_WARN | C_NO_EXPAND | C_NO_ERROR)))
@ -3598,7 +3602,7 @@ static void prepareRate(int chan, char **msg, char **tip, int viarep)
static char dst[BUFSIZ], *text; static char dst[BUFSIZ], *text;
auto int l; auto int l;
l = getAreacode(DTAG, call[chan].num[CALLED] + 3, &text); l = getAreacode(49, call[chan].num[CALLED] + 3, &text);
print_msg(PRT_NORMAL, "getAreacode(49,%s,\"%s\")=%d\n", call[chan].num[CALLED] + 3, text, l); print_msg(PRT_NORMAL, "getAreacode(49,%s,\"%s\")=%d\n", call[chan].num[CALLED] + 3, text, l);
if ((get_areacode(call[chan].num[CALLED], &l, C_NO_WARN | C_NO_EXPAND | C_NO_ERROR))) if ((get_areacode(call[chan].num[CALLED], &l, C_NO_WARN | C_NO_EXPAND | C_NO_ERROR)))
Strncpy(dst, call[chan].num[CALLED], l + 1); Strncpy(dst, call[chan].num[CALLED], l + 1);

View File

@ -19,6 +19,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Log$ * $Log$
* Revision 1.8 1999/06/26 10:12:14 akool
* isdnlog Version 3.36
* - EGCS 1.1.2 bug correction from Nima <nima_ghasseminejad@public.uni-hamburg.de>
* - zone-1.11
*
* Revision 1.7 1999/06/22 19:41:28 akool * Revision 1.7 1999/06/22 19:41:28 akool
* zone-1.1 fixes * zone-1.1 fixes
* *
@ -93,7 +98,10 @@ struct sth {
int numlen; int numlen;
int cc; int cc;
} ; } ;
#ifdef STANDALONE
#define min(a,b) (a) < (b) ? (a) : (b) #define min(a,b) (a) < (b) ? (a) : (b)
#endif
static struct sth *sthp; static struct sth *sthp;
static int count; static int count;

View File

@ -19,6 +19,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Log$ * $Log$
* Revision 1.1 1999/06/09 19:59:23 akool
* isdnlog Version 3.31
* - Release 0.91 of zone-Database (aka "Verzonungstabelle")
* - "rate-de.dat" V:1.02-Germany [09-Jun-1999 21:45:26]
*
* *
*/ */
@ -28,5 +33,6 @@
int initZone (int provider, char *path, char **msg); int initZone (int provider, char *path, char **msg);
void exitZone (int provider); void exitZone (int provider);
int getZone (int provider, char *from, char *to); int getZone (int provider, char *from, char *to);
int getAreacode(int country, char *from, char **text);
#endif #endif