Skip to content

Commit

Permalink
- printed more helpful log against invalid configuration
Browse files Browse the repository at this point in the history
- use int64_t instead of long long
- use %lld (or %qd for freebsd[23]) to print int64_t integers
  • Loading branch information
jinmei committed Jun 8, 2001
1 parent e3ef8cf commit ab9c969
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 107 deletions.
8 changes: 4 additions & 4 deletions kame/kame/rtadvd/advcap.c
@@ -1,4 +1,4 @@
/* $KAME: advcap.c,v 1.5 2001/02/01 09:12:08 jinmei Exp $ */
/* $KAME: advcap.c,v 1.6 2001/06/08 04:46:19 jinmei Exp $ */

/*
* Copyright (c) 1983 The Regents of the University of California.
Expand Down Expand Up @@ -95,7 +95,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 **));
Expand Down Expand Up @@ -306,11 +306,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;
{
register long long i;
register int64_t i;
register int base;
register char *bp = tbuf;

Expand Down
4 changes: 2 additions & 2 deletions kame/kame/rtadvd/advcap.h
@@ -1,4 +1,4 @@
/* $KAME: advcap.h,v 1.3 2001/02/01 09:12:08 jinmei Exp $ */
/* $KAME: advcap.h,v 1.4 2001/06/08 04:46:19 jinmei Exp $ */

/*
* Copyright (C) 1994,1995 by Andrey A. Chernov, Moscow, Russia.
Expand Down Expand Up @@ -37,7 +37,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
Expand Down

0 comments on commit ab9c969

Please sign in to comment.