aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-02-23 16:24:13 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-02-23 16:24:13 +0000
commit1d5c24d0682732d796def7be6506019c09936b38 (patch)
treea274c29c409e0f93a382de3f93e375e19603662c /capture_ui_utils.c
parentbe73966017617d3794ae7bfcc2efb1525b0f470b (diff)
Fix indentation.
svn path=/trunk/; revision=31966
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index 551b78947c..c975aa6df5 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -258,29 +258,29 @@ build_capture_combo_list(GList *if_list, gboolean do_hide)
/* Is this interface hidden and, if so, should we include it
anyway? */
if (!prefs_is_capture_device_hidden(if_info->name) || !do_hide) {
- /* It's not hidden, or it is but we should include it in the list. */
-
- /* Do we have a user-supplied description? */
- descr = capture_dev_user_descr_find(if_info->name);
- if (descr != NULL) {
- /* Yes, we have a user-supplied description; use it. */
- if_string = g_strdup_printf("%s: %s", descr, if_info->name);
- g_free(descr);
- } else {
- /* No, we don't have a user-supplied description; did we get
- one from the OS or libpcap? */
- if (if_info->description != NULL) {
- /* Yes - use it. */
- if_string = g_strdup_printf("%s: %s", if_info->description,
+ /* It's not hidden, or it is but we should include it in the list. */
+
+ /* Do we have a user-supplied description? */
+ descr = capture_dev_user_descr_find(if_info->name);
+ if (descr != NULL) {
+ /* Yes, we have a user-supplied description; use it. */
+ if_string = g_strdup_printf("%s: %s", descr, if_info->name);
+ g_free(descr);
+ } else {
+ /* No, we don't have a user-supplied description; did we get
+ one from the OS or libpcap? */
+ if (if_info->description != NULL) {
+ /* Yes - use it. */
+ if_string = g_strdup_printf("%s: %s", if_info->description,
if_info->name);
- } else {
- /* No. */
- if_string = g_strdup(if_info->name);
- }
- }
- combo_list = g_list_append(combo_list, if_string);
+ } else {
+ /* No. */
+ if_string = g_strdup(if_info->name);
+ }
+ }
+ combo_list = g_list_append(combo_list, if_string);
}
- }
+ }/*for*/
}
return combo_list;
}