diff --git a/usr.sbin/rtadvd/advcap.c b/usr.sbin/rtadvd/advcap.c index 29098011d9ea..f201d0c9011a 100644 --- a/usr.sbin/rtadvd/advcap.c +++ b/usr.sbin/rtadvd/advcap.c @@ -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; diff --git a/usr.sbin/rtadvd/advcap.h b/usr.sbin/rtadvd/advcap.h index 7b3715a7df2d..372387130c42 100644 --- a/usr.sbin/rtadvd/advcap.h +++ b/usr.sbin/rtadvd/advcap.h @@ -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 diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index b754fd61b2e1..f8c8abb16315 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -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); \