Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix use of va_list

  • Loading branch information...
commit 86d094e30181e0ccfc5bb14cb535142acb986860 1 parent 1f39614
itojun authored
Showing with 5 additions and 4 deletions.
  1. +3 −2 kame/kame/racoon/plog.c
  2. +2 −2 kame/kame/racoon/plog.h
5 kame/kame/racoon/plog.c
View
@@ -1,4 +1,4 @@
-/* $KAME: plog.c,v 1.21 2002/04/25 23:52:38 itojun Exp $ */
+/* $KAME: plog.c,v 1.22 2002/04/26 00:00:10 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -131,9 +131,10 @@ plog(int pri, const char *func, struct sockaddr *sa, const char *fmt, ...)
void
plogv(int pri, const char *func, struct sockaddr *sa,
- const char *fmt, va_list ap)
+ const char *fmt, ...)
{
char *newfmt;
+ va_list ap;
if (pri > loglevel)
return;
4 kame/kame/racoon/plog.h
View
@@ -1,4 +1,4 @@
-/* $KAME: plog.h,v 1.8 2001/10/08 23:56:28 sakane Exp $ */
+/* $KAME: plog.h,v 1.9 2002/04/26 00:00:10 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -62,7 +62,7 @@ extern int f_foreground;
struct sockaddr;
extern void plog __P((int, const char *, struct sockaddr *, const char *, ...));
extern void plogv __P((int, const char *, struct sockaddr *,
- const char *, va_list));
+ const char *, ...));
extern void plogdump __P((int, void *, size_t));
extern void ploginit __P((void));
extern void plogset __P((char *));
Please sign in to comment.
Something went wrong with that request. Please try again.