diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-16 22:22:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-16 22:22:31 +0000 |
commit | 8180f5a3dc79ed37d702acc6f183d49fac1622c2 (patch) | |
tree | fdd4d513dfd967a5c523f14854ad06ee64c131e0 /packet-multipart.c | |
parent | a6e40c7817a8c3ba96bd72f5ccf721b8e6b68036 (diff) | |
download | wireshark-8180f5a3dc79ed37d702acc6f183d49fac1622c2.tar.gz wireshark-8180f5a3dc79ed37d702acc6f183d49fac1622c2.tar.bz2 wireshark-8180f5a3dc79ed37d702acc6f183d49fac1622c2.zip |
Constify some pointers to which pointers-to-const are assigned.
svn path=/trunk/; revision=9684
Diffstat (limited to 'packet-multipart.c')
-rwxr-xr-x | packet-multipart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-multipart.c b/packet-multipart.c index b4060be8e5..fdcca04d5d 100755 --- a/packet-multipart.c +++ b/packet-multipart.c @@ -3,7 +3,7 @@ * Copyright 2004, Anders Broman <anders.broman[at]ericsson.com> * Copyright 2004, Olivier Biot <olivier.biot[at]siemens.com> * - * $Id: packet-multipart.c,v 1.3 2004/01/16 04:32:30 gerald Exp $ + * $Id: packet-multipart.c,v 1.4 2004/01/16 22:22:31 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -123,7 +123,7 @@ static gboolean display_unknown_body_as_text = FALSE; typedef struct { - char *type; /* Type of multipart */ + const char *type; /* Type of multipart */ char *boundary; /* Boundary string (enclosing quotes removed if any) */ guint boundary_length; /* Length of the boundary string */ } multipart_info_t; @@ -284,7 +284,7 @@ index_of_char(const char *str, const char c) static multipart_info_t * get_multipart_info(packet_info *pinfo) { - char *start, *p; + const char *start, *p; int len = 0; multipart_info_t *m_info = NULL; const char *type = pinfo->match_string; |