summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-12-29 14:01:10 +0100
committerBenBE <BenBE@geshi.org>2023-12-29 15:20:22 +0100
commitc845b79ea7e9f384ca77064ea0bee16661b135f2 (patch)
tree897641bc888bc9aa3ad3a4680e6c2eaefdffb463
parent338baa4173be086ddebaed695d8f8ba31dccd8a1 (diff)
Clarify magic number for data/cols fields
-rw-r--r--OpenFilesScreen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c
index 8f73ec53..d6d663c0 100644
--- a/OpenFilesScreen.c
+++ b/OpenFilesScreen.c
@@ -27,14 +27,17 @@ in the source distribution for its full text.
#include "XUtils.h"
+// cf. getIndexForType; must be larger than the maximum value returned.
+#define LSOF_DATACOL_COUNT 8
+
typedef struct OpenFiles_Data_ {
- char* data[8];
+ char* data[LSOF_DATACOL_COUNT];
} OpenFiles_Data;
typedef struct OpenFiles_ProcessData_ {
OpenFiles_Data data;
int error;
- int cols[8];
+ int cols[LSOF_DATACOL_COUNT];
struct OpenFiles_FileData_* files;
} OpenFiles_ProcessData;

© 2014-2024 Faster IT GmbH | imprint | privacy policy