From 3c93d8840e37d90ca61bef4f0887f97b512c40a7 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 5 Jan 1999 07:33:38 +0000 Subject: [PATCH] Neither "ether_to_str()" nor "ip_to_str()" modify the data pointed to by their arguments, so make those arguments pointers to 'const", so that we don't get complaints if somebody hands them a pointer to "const". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@158 f5534014-38df-0310-8fa8-9805f1628bb7 --- packet.c | 6 +++--- packet.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packet.c b/packet.c index 3ddcfaee68..06e1fdd785 100644 --- a/packet.c +++ b/packet.c @@ -1,7 +1,7 @@ /* packet.c * Routines for packet disassembly * - * $Id: packet.c,v 1.16 1999/01/02 06:10:53 gram Exp $ + * $Id: packet.c,v 1.17 1999/01/05 07:33:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -57,7 +57,7 @@ extern GdkFont *m_r_font, *m_b_font; extern capture_file cf; gchar * -ether_to_str(guint8 *ad) { +ether_to_str(const guint8 *ad) { static gchar str[3][18]; static gchar *cur; @@ -74,7 +74,7 @@ ether_to_str(guint8 *ad) { } gchar * -ip_to_str(guint8 *ad) { +ip_to_str(const guint8 *ad) { static gchar str[3][16]; static gchar *cur; diff --git a/packet.h b/packet.h index 7275b2b1fb..3cf8b7e00d 100644 --- a/packet.h +++ b/packet.h @@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.31 1999/01/04 09:13:45 guy Exp $ + * $Id: packet.h,v 1.32 1999/01/05 07:33:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -494,8 +494,8 @@ void dissect_ip_tcp_options(GtkWidget *, const u_char *, int, guint, ip_tcp_opt *, int, int); /* Utility routines used by packet*.c */ -gchar* ether_to_str(guint8 *); -gchar* ip_to_str(guint8 *); +gchar* ether_to_str(const guint8 *); +gchar* ip_to_str(const guint8 *); void packet_hex_print(GtkText *, guint8 *, gint, gint, gint); #define E_TREEINFO_START_KEY "tree_info_start" #define E_TREEINFO_LEN_KEY "tree_info_len" -- 2.34.1