diff --git a/Process.c b/Process.c index 84815157a68f5e953f9a1c69d9e6d77bf32e88d4..6b9032cd23dbf065c66c2ec1a2fd0c6590deb775 100644 --- a/Process.c +++ b/Process.c @@ -48,6 +48,7 @@ in the source distribution for its full text. #define PROCESS_FLAG_IO 0x0001 typedef enum ProcessFields { + NULL_PROCESSFIELD = 0, PID = 1, COMM = 2, STATE = 3, diff --git a/Process.h b/Process.h index c9aa3e122d49dff715f20224d83628487bfc2f83..43780a2fd84dbb2c7799e8b9fb0ce3f8259cc01a 100644 --- a/Process.h +++ b/Process.h @@ -28,6 +28,7 @@ in the source distribution for its full text. #define PROCESS_FLAG_IO 0x0001 typedef enum ProcessFields { + NULL_PROCESSFIELD = 0, PID = 1, COMM = 2, STATE = 3, diff --git a/Settings.c b/Settings.c index 2975d62bc9215b3adede2f0c9a296f530fccf52c..eaca782960bcda18e7cc1776d3743fa96bdb1535 100644 --- a/Settings.c +++ b/Settings.c @@ -159,7 +159,7 @@ static void readFields(ProcessField* fields, int* flags, const char* line) { j++; } } - fields[j] = (ProcessField) NULL; + fields[j] = NULL_PROCESSFIELD; String_freeArray(ids); }