Commit 7ededce9 authored by Hisham's avatar Hisham
Browse files

Silence cast warning.

parent fa0c637c
...@@ -48,6 +48,7 @@ in the source distribution for its full text. ...@@ -48,6 +48,7 @@ in the source distribution for its full text.
#define PROCESS_FLAG_IO 0x0001 #define PROCESS_FLAG_IO 0x0001
typedef enum ProcessFields { typedef enum ProcessFields {
NULL_PROCESSFIELD = 0,
PID = 1, PID = 1,
COMM = 2, COMM = 2,
STATE = 3, STATE = 3,
......
...@@ -28,6 +28,7 @@ in the source distribution for its full text. ...@@ -28,6 +28,7 @@ in the source distribution for its full text.
#define PROCESS_FLAG_IO 0x0001 #define PROCESS_FLAG_IO 0x0001
typedef enum ProcessFields { typedef enum ProcessFields {
NULL_PROCESSFIELD = 0,
PID = 1, PID = 1,
COMM = 2, COMM = 2,
STATE = 3, STATE = 3,
......
...@@ -159,7 +159,7 @@ static void readFields(ProcessField* fields, int* flags, const char* line) { ...@@ -159,7 +159,7 @@ static void readFields(ProcessField* fields, int* flags, const char* line) {
j++; j++;
} }
} }
fields[j] = (ProcessField) NULL; fields[j] = NULL_PROCESSFIELD;
String_freeArray(ids); String_freeArray(ids);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment