diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-12-13 22:33:55 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-12-13 22:33:55 +0000 |
commit | ec87b13d49e0c8d0e38aed96d57711c1703f2352 (patch) | |
tree | 13f0ca878952c6bacb88800f62db90f00b9abb4d | |
parent | d265d85d92577715e85152f28b919db87ca4573f (diff) | |
download | wireshark-ec87b13d49e0c8d0e38aed96d57711c1703f2352.tar.gz wireshark-ec87b13d49e0c8d0e38aed96d57711c1703f2352.tar.bz2 wireshark-ec87b13d49e0c8d0e38aed96d57711c1703f2352.zip |
make get_if_name() parameter if_text const, it's not changed inside
svn path=/trunk/; revision=16785
-rw-r--r-- | capture_ui_utils.c | 2 | ||||
-rw-r--r-- | capture_ui_utils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c index 53740237b2..b1307e79fa 100644 --- a/capture_ui_utils.c +++ b/capture_ui_utils.c @@ -270,7 +270,7 @@ free_capture_combo_list(GList *combo_list) * interface description, extract the interface name. */ char * -get_if_name(char *if_text) +get_if_name(const char *if_text) { char *if_name; diff --git a/capture_ui_utils.h b/capture_ui_utils.h index e3b7bf7dc5..a06a2db7e6 100644 --- a/capture_ui_utils.h +++ b/capture_ui_utils.h @@ -65,7 +65,7 @@ void free_capture_combo_list(GList *combo_list); * * @return The raw interface name, without description (must NOT be g_free'd later) */ -char *get_if_name(char *if_text); +char *get_if_name(const char *if_text); /** Convert plain interface name to the displayed name in the combo box. * |