diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-07-26 11:24:51 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 11:24:51 -0300 |
commit | ef7817c17a35dd5f8d9eb9ee65539e52d2fdb410 (patch) | |
tree | c932359d63a4d2ec16da0b1b9b221d0e81008eb3 /Action.c | |
parent | 33fda932713de9db236d63098d88529f669fc49c (diff) | |
parent | d5faf643742ae047e327d41910232791bc7bca41 (diff) |
Merge pull request #656 from rsaxvc/master
more const usage
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -381,7 +381,7 @@ static Htop_Reaction actionRedraw() { return HTOP_REFRESH | HTOP_REDRAW_BAR; } -static struct { const char* key; const char* info; } helpLeft[] = { +static const struct { const char* key; const char* info; } helpLeft[] = { { .key = " Arrows: ", .info = "scroll process list" }, { .key = " Digits: ", .info = "incremental PID search" }, { .key = " F3 /: ", .info = "incremental name search" }, @@ -399,7 +399,7 @@ static struct { const char* key; const char* info; } helpLeft[] = { { .key = NULL, .info = NULL } }; -static struct { const char* key; const char* info; } helpRight[] = { +static const struct { const char* key; const char* info; } helpRight[] = { { .key = " Space: ", .info = "tag process" }, { .key = " c: ", .info = "tag process and its children" }, { .key = " U: ", .info = "untag all processes" }, |