We must include "snprintf.h" *after* including <stdarg.h>, and

<stdarg.h> is now included by "proto.h", so we must include "snprintf.h"
after including "proto.h".

svn path=/trunk/; revision=2246
This commit is contained in:
Guy Harris 2000-08-10 19:41:45 +00:00
parent 4dcd76ae4b
commit 2e2fd5bba8
1 changed files with 5 additions and 5 deletions

10
proto.c
View File

@ -1,7 +1,7 @@
/* proto.c
* Routines for protocol tree
*
* $Id: proto.c,v 1.74 2000/08/10 16:04:31 deniel Exp $
* $Id: proto.c,v 1.75 2000/08/10 19:41:45 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -39,10 +39,6 @@
#include <string.h>
#endif
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif
#ifndef __G_LIB_H__
#include <glib.h>
#endif
@ -65,6 +61,10 @@
#include "packet-ipv6.h"
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif
#define cVALS(x) (const value_string*)(x)
static gboolean