From 7ededce9b5d0d6f8cd24c89ff5d9bbf7da42cd32 Mon Sep 17 00:00:00 2001 From: Hisham Date: Mon, 30 May 2016 12:22:07 -0300 Subject: [PATCH] Silence cast warning. --- Process.c | 1 + Process.h | 1 + Settings.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Process.c b/Process.c index 84815157..6b9032cd 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 c9aa3e12..43780a2f 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 2975d62b..eaca7829 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); }