summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-31 23:28:02 +0100
committerBenny Baumann <BenBE@geshi.org>2020-11-02 22:15:01 +0100
commit61e14d4bb25268593019e6df3eb02264b4ac8e0e (patch)
tree910b68d9a5ee1c4d25b2cf3ee24abaaf3e6a096b /htop.c
parentb23f8235e28472c410dcb00893e0e3d403892673 (diff)
Spacing around operators
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/htop.c b/htop.c
index 2e11a949..76754462 100644
--- a/htop.c
+++ b/htop.c
@@ -106,10 +106,10 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
{"tree", no_argument, 0, 't'},
{"pid", required_argument, 0, 'p'},
{"filter", required_argument, 0, 'F'},
- {0,0,0,0}
+ {0, 0, 0, 0}
};
- int opt, opti=0;
+ int opt, opti = 0;
/* Parse arguments */
while ((opt = getopt_long(argc, argv, "hVMCs:td:u::Up:F:", long_opts, &opti))) {
if (opt == EOF) break;
@@ -218,7 +218,7 @@ static void millisleep(unsigned long millisec) {
.tv_sec = 0,
.tv_nsec = millisec * 1000000L
};
- while (nanosleep(&req,&req)==-1) {
+ while (nanosleep(&req, &req) == -1) {
continue;
}
}
@@ -242,7 +242,7 @@ static void setCommFilter(State* state, char** commFilter) {
int main(int argc, char** argv) {
- char *lc_ctype = getenv("LC_CTYPE");
+ char* lc_ctype = getenv("LC_CTYPE");
if (lc_ctype != NULL)
setlocale(LC_CTYPE, lc_ctype);
else if ((lc_ctype = getenv("LC_ALL")))
@@ -318,7 +318,7 @@ int main(int argc, char** argv) {
ScreenManager_run(scr, NULL, NULL);
attron(CRT_colors[RESET_COLOR]);
- mvhline(LINES-1, 0, ' ', COLS);
+ mvhline(LINES - 1, 0, ' ', COLS);
attroff(CRT_colors[RESET_COLOR]);
refresh();

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