aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2018-02-05 14:48:51 +0200
committerGraham Inggs <ginggs@debian.org>2018-02-05 14:48:51 +0200
commit2ee50d030178cede83eb9d0005fbc19f819d30fe (patch)
tree67d75c0a7c47e15bed9d0735ecf12abec4f8157b /openbsd
parent31b71b67011fa52f091df6fe536a11d6d0bfb256 (diff)
downloaddebian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.tar.gz
debian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.tar.bz2
debian_htop-2ee50d030178cede83eb9d0005fbc19f819d30fe.zip
Imported Upstream version 2.1.0upstream/2.1.0
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDProcess.c2
-rw-r--r--openbsd/Platform.c4
-rw-r--r--openbsd/Platform.h4
3 files changed, 5 insertions, 5 deletions
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy