Introduction
Introduction Statistics Contact Development Disclaimer Help
fix: compiling error - lchat - A line oriented chat front end for ii.
git clone git://git.suckless.org/lchat
Log
Files
Refs
README
---
commit a343a2a5a2ada4f84aeca1de1e3f00ac21293281
parent c12f5752c6768d3a218a071fe568721fba4f8875
Author: Jan Klemkow <[email protected]>
Date: Sun, 15 Nov 2015 22:37:41 +0100
fix: compiling error
Diffstat:
M lchat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lchat.c b/lchat.c
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
int c;
int ch;
bool empty_line = false;
- bool bell = true;
+ bool bell_flag = true;
size_t history_len = 5;
char *prompt = ">";
size_t prompt_len = strlen(prompt);
@@ -97,7 +97,7 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "an:i:eo:p:t:h")) != -1) {
switch (ch) {
case 'a':
- bell = false;
+ bell_flag = false;
break;
case 'n':
errno = 0;
@@ -238,7 +238,7 @@ main(int argc, char *argv[])
err(EXIT_FAILURE, "read");
if (write(STDOUT_FILENO, buf, n) == -1)
err(EXIT_FAILURE, "write");
- if (bell) /* ring the bell on external input */
+ if (bell_flag) /* ring the bell on external inp…
putchar('\a');
}
out:
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.