diff options
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 4 | ||||
-rw-r--r-- | darwin/Platform.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index 9274d0d8..e6a435c0 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -33,7 +33,7 @@ in the source distribution for its full text. ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 }; -SignalItem Platform_signals[] = { +const SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, { .name = " 1 SIGHUP", .number = 1 }, { .name = " 2 SIGINT", .number = 2 }, @@ -69,7 +69,7 @@ SignalItem Platform_signals[] = { { .name = "31 SIGUSR2", .number = 31 }, }; -unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem); +const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem); ProcessFieldData Process_fields[] = { [0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, }, diff --git a/darwin/Platform.h b/darwin/Platform.h index 29ef289d..1231217b 100644 --- a/darwin/Platform.h +++ b/darwin/Platform.h @@ -22,9 +22,9 @@ in the source distribution for its full text. extern ProcessField Platform_defaultFields[]; -extern SignalItem Platform_signals[]; +extern const SignalItem Platform_signals[]; -extern unsigned int Platform_numberOfSignals; +extern const unsigned int Platform_numberOfSignals; extern ProcessFieldData Process_fields[]; |