diff options
author | Hisham <hisham@gobolinux.org> | 2016-05-30 12:22:07 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-05-30 12:22:07 -0300 |
commit | 7ededce9b5d0d6f8cd24c89ff5d9bbf7da42cd32 (patch) | |
tree | 4d8ca874f5a6f597a5f05e28db09c2c8484bd669 | |
parent | fa0c637c557108dffe1d4eff30d14d87b6ca26de (diff) |
Silence cast warning.
-rw-r--r-- | Process.c | 1 | ||||
-rw-r--r-- | Process.h | 1 | ||||
-rw-r--r-- | Settings.c | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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, @@ -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, @@ -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); } |