More constification.

svn path=/trunk/; revision=14740
This commit is contained in:
Guy Harris 2005-06-24 02:51:01 +00:00
parent 76258fe8e3
commit b67f63560e
4 changed files with 8 additions and 8 deletions

View File

@ -2903,7 +2903,7 @@ proto_register_field_init(header_field_info *hfinfo, int parent)
if ((hfinfo->name[0] != 0) && (hfinfo->abbrev[0] != 0 )) {
header_field_info *same_name_hfinfo, *same_name_next_hfinfo;
char *p;
const char *p;
guchar c;
/* Check that the filter name (abbreviation) is legal;
@ -3652,7 +3652,7 @@ proto_registrar_n(void)
return gpa_hfinfo.len;
}
char*
const char*
proto_registrar_get_name(int n)
{
header_field_info *hfinfo;
@ -3661,7 +3661,7 @@ proto_registrar_get_name(int n)
return hfinfo->name;
}
char*
const char*
proto_registrar_get_abbrev(int n)
{
header_field_info *hfinfo;

View File

@ -963,12 +963,12 @@ extern int proto_registrar_n(void);
/** Get name of registered header_field number n.
@param n item # n (0-indexed)
@return the name of this registered item */
extern char* proto_registrar_get_name(int n);
extern const char* proto_registrar_get_name(int n);
/** Get abbreviation of registered header_field number n.
@param n item # n (0-indexed)
@return the abbreviation of this registered item */
extern char* proto_registrar_get_abbrev(int n);
extern const char* proto_registrar_get_abbrev(int n);
/** Get the header_field information based upon a field or protocol id.
@param hfindex item # n (0-indexed)

View File

@ -307,7 +307,7 @@ void
selected_ptree_info_cb(GtkWidget *widget _U_, gpointer data _U_)
{
int field_id;
gchar *proto_abbrev;
const gchar *proto_abbrev;
gpointer dialog;
@ -351,7 +351,7 @@ void
selected_ptree_ref_cb(GtkWidget *widget _U_, gpointer data _U_)
{
int field_id;
gchar *proto_abbrev;
const gchar *proto_abbrev;
gchar *selected_proto_url;

View File

@ -237,7 +237,7 @@ static void new_attr_hfri(gchar* item_name, GHashTable* hfids, gchar* name) {
}
static gchar* my_protoname(int proto_id) {
static const gchar* my_protoname(int proto_id) {
if (proto_id) {
return proto_registrar_get_abbrev(proto_id);
} else {