OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | From 5edd4a7b95c5be05ffe72ae6452e94ffa14bc5e5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Joshua Judson Rosen <rozzin@geekspace.com> |
| 3 | Date: Thu, 12 May 2011 22:18:15 -0400 |
| 4 | Subject: [PATCH 14/17] Use file_depth() rather than file_iter_depth() in explore_files_depth_distance(). |
| 5 | The numbers end up the same here, but file_depth() is usable even when running without the GUI (e.g.: "gjay --playlist"). |
| 6 | |
| 7 | --- |
| 8 | ui_explore_view.c | 6 +++--- |
| 9 | 1 files changed, 3 insertions(+), 3 deletions(-) |
| 10 | |
| 11 | diff --git a/ui_explore_view.c b/ui_explore_view.c |
| 12 | index 413675d..d99eab2 100644 |
| 13 | --- a/ui_explore_view.c |
| 14 | +++ b/ui_explore_view.c |
| 15 | @@ -658,9 +658,9 @@ gint explore_files_depth_distance ( char * file1, |
| 16 | k--; |
| 17 | /* Replace slash with null termination */ |
| 18 | buffer[k] = '\0'; |
| 19 | - f1 = file_iter_depth(file1); |
| 20 | - f2 = file_iter_depth(file2); |
| 21 | - shared = file_iter_depth(buffer) + 1; |
| 22 | + f1 = file_depth(file1); |
| 23 | + f2 = file_depth(file2); |
| 24 | + shared = file_depth(buffer) + 1; |
| 25 | |
| 26 | if (f1 && f2 && shared) |
| 27 | return ((f1 - shared) + (f2 - shared)); |
| 28 | -- |
| 29 | 1.7.2.5 |
| 30 | |
| 31 |
