use int64_t instead of long long.

Obtained from:	KAME
MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2003-08-11 15:46:37 +00:00
parent 798fb860d5
commit 47742de0ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118784
3 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@ int getent __P((char *, char *, char *));
int tnchktc __P((void));
int tnamatch __P((char *));
static char *tskip __P((char *));
long long tgetnum __P((char *));
int64_t tgetnum __P((char *));
int tgetflag __P((char *));
char *tgetstr __P((char *, char **));
static char *tdecode __P((char *, char **));
@ -308,11 +308,11 @@ tskip(bp)
* a # character. If the option is not found we return -1.
* Note that we handle octal numbers beginning with 0.
*/
long long
int64_t
tgetnum(id)
char *id;
{
long long i;
int64_t i;
int base;
char *bp = tbuf;

View File

@ -1,5 +1,5 @@
/* $FreeBSD$ */
/* $KAME: advcap.h,v 1.3 2001/02/01 09:12:08 jinmei Exp $ */
/* $KAME: advcap.h,v 1.5 2003/06/09 05:40:54 t-momose Exp $ */
/*
* Copyright (C) 1994,1995 by Andrey A. Chernov, Moscow, Russia.
@ -38,7 +38,7 @@ __BEGIN_DECLS
extern int agetent __P((char *, const char *));
extern int agetflag __P((const char *));
extern long long agetnum __P((const char *));
extern int64_t agetnum __P((const char *));
extern char *agetstr __P((const char *, char **));
__END_DECLS

View File

@ -85,7 +85,7 @@ getconfig(intface)
char tbuf[BUFSIZ];
struct rainfo *tmp;
long val;
long long val64;
int64_t val64;
char buf[BUFSIZ];
char *bp = buf;
char *addr;
@ -93,7 +93,7 @@ getconfig(intface)
#define MUSTHAVE(var, cap) \
do { \
int t; \
int64_t t; \
if ((t = agetnum(cap)) < 0) { \
fprintf(stderr, "rtadvd: need %s for interface %s\n", \
cap, intface); \