projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
audiod: Kill noisy debug message.
[paraslash.git]
/
gui.c
diff --git
a/gui.c
b/gui.c
index 394b69fe5466efe19fb532a2cf43e18381409d8e..5b44819c05afc074fadca3a5a7d5c1ece9fe8b8f 100644
(file)
--- a/
gui.c
+++ b/
gui.c
@@
-45,7
+45,7
@@
struct rb_entry {
size_t len;
int color;
};
size_t len;
int color;
};
-struct ringbuffer *bot_win_rb;
+st
atic st
ruct ringbuffer *bot_win_rb;
#define NUM_LINES(len) (1 + (len) / bot.cols)
static unsigned scroll_position;
#define NUM_LINES(len) (1 + (len) / bot.cols)
static unsigned scroll_position;
@@
-91,8
+91,8
@@
struct stat_item {
static struct gui_theme theme;
static struct gui_theme theme;
-int _argc;
-char **_argv;
+
static
int _argc;
+
static
char **_argv;
static void com_help(void);
static void com_reread_conf(void);
static void com_help(void);
static void com_reread_conf(void);
@@
-110,7
+110,7
@@
static void com_scroll_down(void);
static void com_page_up(void);
static void com_page_down(void);
static void com_page_up(void);
static void com_page_down(void);
-struct gui_command command_list[] = {
+st
atic st
ruct gui_command command_list[] = {
{
.key = "?",
.name = "help",
{
.key = "?",
.name = "help",
@@
-309,7
+309,7
@@
static int align_str(WINDOW* win, char *str, unsigned int len,
num = 0;
}
/* replace newlines by spaces */
num = 0;
}
/* replace newlines by spaces */
- for (i = 0; i < len; i++) {
+ for (i = 0; i < len
&& str[i]
; i++) {
if (str[i] == '\n')
str[i] = ' ';
}
if (str[i] == '\n')
str[i] = ' ';
}