From 2ee50d030178cede83eb9d0005fbc19f819d30fe Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Mon, 5 Feb 2018 14:48:51 +0200 Subject: Imported Upstream version 2.1.0 --- openbsd/OpenBSDProcess.c | 2 +- openbsd/Platform.c | 4 ++-- openbsd/Platform.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'openbsd') diff --git a/openbsd/OpenBSDProcess.c b/openbsd/OpenBSDProcess.c index 71c84e8..70f9653 100644 --- a/openbsd/OpenBSDProcess.c +++ b/openbsd/OpenBSDProcess.c @@ -85,7 +85,7 @@ ProcessFieldData Process_fields[] = { .flags = 0, }, [TTY_NR] = { .name = "TTY_NR", - .title = " TTY ", + .title = " TTY ", .description = "Controlling terminal", .flags = 0, }, [TPGID] = { diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 9273abc..01b6c47 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -99,7 +99,7 @@ int Platform_numberOfFields = LAST_PROCESSFIELD; /* * See /usr/include/sys/signal.h */ -SignalItem Platform_signals[] = { +const SignalItem Platform_signals[] = { { .name = " 0 Cancel", .number = 0 }, { .name = " 1 SIGHUP", .number = 1 }, { .name = " 2 SIGINT", .number = 2 }, @@ -136,7 +136,7 @@ SignalItem Platform_signals[] = { { .name = "32 SIGTHR", .number = 32 }, }; -unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem); +const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem); void Platform_setBindings(Htop_Action* keys) { (void) keys; diff --git a/openbsd/Platform.h b/openbsd/Platform.h index 6665093..e0da7b9 100644 --- a/openbsd/Platform.h +++ b/openbsd/Platform.h @@ -39,9 +39,9 @@ extern int Platform_numberOfFields; /* * See /usr/include/sys/signal.h */ -extern SignalItem Platform_signals[]; +extern const SignalItem Platform_signals[]; -extern unsigned int Platform_numberOfSignals; +extern const unsigned int Platform_numberOfSignals; void Platform_setBindings(Htop_Action* keys); -- cgit v1.2.3