diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:34:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-02 23:34:40 +0000 |
commit | 8414298f8921489c6174c24d4363c391822e83c5 (patch) | |
tree | ab0226aab80ac9804a8dd4c850f9031c2aeebe96 /epan/column-utils.h | |
parent | cfa04730cf84fc8463cb6377a132379a7abe32a4 (diff) |
Make the format argument to the "col_XXX_fstr()" routines, and the "str"
argument to "col_append_str()", const pointers; they're not modified by
the routines in question.
svn path=/trunk/; revision=6725
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h index 7800469950..512667e31d 100644 --- a/epan/column-utils.h +++ b/epan/column-utils.h @@ -1,7 +1,7 @@ /* column-utils.h * Definitions for column utility structures and routines * - * $Id: column-utils.h,v 1.8 2002/11/11 19:23:14 guy Exp $ + * $Id: column-utils.h,v 1.9 2002/12/02 23:34:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -45,19 +45,19 @@ extern gint check_col(column_info *, gint); extern void col_clear(column_info *, gint); extern void col_set_str(column_info *, gint, gchar *); #if __GNUC__ >= 2 -extern void col_add_fstr(column_info *, gint, gchar *, ...) +extern void col_add_fstr(column_info *, gint, const gchar *, ...) __attribute__((format (printf, 3, 4))); -extern void col_append_fstr(column_info *, gint, gchar *, ...) +extern void col_append_fstr(column_info *, gint, const gchar *, ...) __attribute__((format (printf, 3, 4))); -extern void col_prepend_fstr(column_info *, gint, gchar *, ...) +extern void col_prepend_fstr(column_info *, gint, const gchar *, ...) __attribute__((format (printf, 3, 4))); #else -extern void col_add_fstr(column_info *, gint, gchar *, ...); -extern void col_append_fstr(column_info *, gint, gchar *, ...); -extern void col_prepend_fstr(column_info *, gint, gchar *, ...); +extern void col_add_fstr(column_info *, gint, const gchar *, ...); +extern void col_append_fstr(column_info *, gint, const gchar *, ...); +extern void col_prepend_fstr(column_info *, gint, const gchar *, ...); #endif extern void col_add_str(column_info *, gint, const gchar *); -extern void col_append_str(column_info *, gint, gchar *); +extern void col_append_str(column_info *, gint, const gchar *); extern void col_set_cls_time(frame_data *, column_info *, int); extern void fill_in_columns(packet_info *); |