diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-12-29 12:11:24 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-12-29 15:20:22 +0100 |
commit | 338baa4173be086ddebaed695d8f8ba31dccd8a1 (patch) | |
tree | 8b856d26d951cadbe1d46156c84e4cb53190749e | |
parent | 4bcea76663008bf0c9b0b5516716702f243bc9c9 (diff) |
Fix naming convention inconsistency
-rw-r--r-- | OpenFilesScreen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c index b3f94314..8f73ec53 100644 --- a/OpenFilesScreen.c +++ b/OpenFilesScreen.c @@ -251,15 +251,15 @@ static void OpenFiles_Data_clear(OpenFiles_Data* data) { free(data->data[i]); } -static void OpenFilesScreen_scan(InfoScreen* this) { - Panel* panel = this->display; +static void OpenFilesScreen_scan(InfoScreen* super) { + Panel* panel = super->display; int idx = Panel_getSelectedIndex(panel); Panel_prune(panel); - OpenFiles_ProcessData* pdata = OpenFilesScreen_getProcessData(((OpenFilesScreen*)this)->pid); + OpenFiles_ProcessData* pdata = OpenFilesScreen_getProcessData(((OpenFilesScreen*)super)->pid); if (pdata->error == 127) { - InfoScreen_addLine(this, "Could not execute 'lsof'. Please make sure it is available in your $PATH."); + InfoScreen_addLine(super, "Could not execute 'lsof'. Please make sure it is available in your $PATH."); } else if (pdata->error == 1) { - InfoScreen_addLine(this, "Failed listing open files."); + InfoScreen_addLine(super, "Failed listing open files."); } else { char hdrbuf[128] = {0}; snprintf(hdrbuf, sizeof(hdrbuf), "%5.5s %-7.7s %-4.4s %6.6s %*s %*s %*s %s", @@ -287,7 +287,7 @@ static void OpenFilesScreen_scan(InfoScreen* this) { pdata->cols[getIndexForType('i')], getDataForType(data, 'i'), getDataForType(data, 'n')); - InfoScreen_addLine(this, entry); + InfoScreen_addLine(super, entry); free(entry); OpenFiles_Data_clear(data); OpenFiles_FileData* old = fdata; @@ -297,7 +297,7 @@ static void OpenFilesScreen_scan(InfoScreen* this) { OpenFiles_Data_clear(&pdata->data); } free(pdata); - Vector_insertionSort(this->lines); + Vector_insertionSort(super->lines); Vector_insertionSort(panel->items); Panel_setSelected(panel, idx); } |