summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2020-09-12 18:25:25 -0300
committerHugo Musso Gualandi <hugo_musso_gualandi@hotmail.com>2020-09-12 19:20:44 -0300
commit9207401f9711ba026a70d7dd47347d7eab168b3f (patch)
tree959ae417880dda426e3b1bfea904edc6a90fac0c /CRT.c
parentcd55cfd6d263a89bbaf401481ea6bd6a5dd8f110 (diff)
Clean up some code duplication in the header files
PR htop-dev/htop#70 got rid of the infrastructure for generating header files, but it left behind some code duplication. Some of cases are things that belong in the header file and don't need to be repeated in the C file. Other cases are things that belong in the C file and don't need to be in the header file. In this commit I tried to fix all of these that I could find. When given a choice I preferred keeping things out of the header file, unless they were being used by someone else.
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/CRT.c b/CRT.c
index 2a7c7912..7776c4e7 100644
--- a/CRT.c
+++ b/CRT.c
@@ -39,10 +39,6 @@ in the source distribution for its full text.
#define ColorPairGrayBlack ColorPair(Magenta,Magenta)
#define ColorIndexGrayBlack ColorIndex(Magenta,Magenta)
-#define KEY_WHEELUP KEY_F(20)
-#define KEY_WHEELDOWN KEY_F(21)
-#define KEY_RECLICK KEY_F(22)
-
const char *CRT_treeStrAscii[TREE_STR_COUNT] = {
"-", // TREE_STR_HORZ
"|", // TREE_STR_VERT
@@ -550,12 +546,7 @@ void CRT_restorePrivileges() {
#else
-/* Turn setuid operations into NOPs */
-
-#ifndef CRT_dropPrivileges
-#define CRT_dropPrivileges()
-#define CRT_restorePrivileges()
-#endif
+// In this case, the setuid operations are defined as macros in CRT.h
#endif

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