diff options
author | ume <ume@FreeBSD.org> | 2003-08-11 15:46:37 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-11 15:46:37 +0000 |
commit | 8fcac13acd71669ed66cc7f1571f0799ee6d2e05 (patch) | |
tree | 4086c66726fdf355893e64c762aa227fb7704c51 /usr.sbin/rtadvd | |
parent | 913f59e5bd29583d447d856ebff9f64ecdf9297e (diff) | |
download | FreeBSD-src-8fcac13acd71669ed66cc7f1571f0799ee6d2e05.zip FreeBSD-src-8fcac13acd71669ed66cc7f1571f0799ee6d2e05.tar.gz |
use int64_t instead of long long.
Obtained from: KAME
MFC after: 1 week
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r-- | usr.sbin/rtadvd/advcap.c | 6 | ||||
-rw-r--r-- | usr.sbin/rtadvd/advcap.h | 4 | ||||
-rw-r--r-- | usr.sbin/rtadvd/config.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rtadvd/advcap.c b/usr.sbin/rtadvd/advcap.c index 2909801..f201d0c 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 @@ breakbreak: * 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 7b3715a..3723871 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 b754fd6..f8c8abb 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); \ |