diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-02-25 01:43:18 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-02-25 01:43:18 +0000 |
commit | 02a30bfecdd841b4ca48acfc9b5f2df7930e7a69 (patch) | |
tree | 0a86343ad37f77c10ed6cea35b49e5ff2b926163 /OpenFilesScreen.c | |
parent | 5cc89986887de19c8898ce36e3776b3483a72f2d (diff) |
warning fixes
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r-- | OpenFilesScreen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c index 3b7bfa92..2b047593 100644 --- a/OpenFilesScreen.c +++ b/OpenFilesScreen.c @@ -43,9 +43,9 @@ typedef struct OpenFilesScreen_ { }*/ -static char* tbFunctions[] = {"Refresh", "Done ", NULL}; +static const char* tbFunctions[] = {"Refresh", "Done ", NULL}; -static char* tbKeys[] = {"F5", "Esc"}; +static const char* tbKeys[] = {"F5", "Esc"}; static int tbEvents[] = {KEY_F(5), 27}; @@ -112,7 +112,7 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(int pid) { static void OpenFilesScreen_scan(OpenFilesScreen* this) { Panel* panel = this->display; - int index = MAX(Panel_getSelectedIndex(panel), 0); + int idx = MAX(Panel_getSelectedIndex(panel), 0); Panel_prune(panel); OpenFiles_ProcessData* process = OpenFilesScreen_getProcessData(this->process->pid); if (process->error == 127) { @@ -144,7 +144,7 @@ static void OpenFilesScreen_scan(OpenFilesScreen* this) { } free(process); Vector_sort(panel->items); - Panel_setSelected(panel, index); + Panel_setSelected(panel, idx); } void OpenFilesScreen_run(OpenFilesScreen* this) { |