aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-28 01:58:27 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-28 01:58:27 +0000
commit5dbad1dcdc64d447b2cbc4a00386784aa4987240 (patch)
tree8f67d9a1281c06ef039d75208f866d349381b5f5 /gtk/main.c
parent7b743f7d7d2a2a475d46633bdf939dd839fe9ae2 (diff)
Constify some pointers to avoid converting const pointers to non-const
pointers. svn path=/trunk/; revision=6685
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/main.c b/gtk/main.c
index dfcb6c3329..a07c921e7f 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.276 2002/11/10 20:53:06 gerald Exp $
+ * $Id: main.c,v 1.277 2002/11/28 01:58:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -587,8 +587,8 @@ static gint
packet_list_compare(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
{
/* Get row text strings */
- char *text1 = GTK_CELL_TEXT (((GtkCListRow *)ptr1)->cell[clist->sort_column])->text;
- char *text2 = GTK_CELL_TEXT (((GtkCListRow *)ptr2)->cell[clist->sort_column])->text;
+ const char *text1 = GTK_CELL_TEXT (((GtkCListRow *)ptr1)->cell[clist->sort_column])->text;
+ const char *text2 = GTK_CELL_TEXT (((GtkCListRow *)ptr2)->cell[clist->sort_column])->text;
/* Attempt to convert to numbers */
double num1 = atof(text1);