Silence cast warning.

This commit is contained in:
Hisham 2016-05-30 12:22:07 -03:00
parent fa0c637c55
commit 7ededce9b5
3 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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);
}