summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
authorerdgeist <de@gsmk.de>2014-04-16 20:12:34 +0200
committererdgeist <de@gsmk.de>2014-04-16 20:12:34 +0200
commitb32861fa6ec00c655b7a43ab0d511c7048f1ee43 (patch)
tree50cd33c87b43ff5c9a7a029346386cef2bdff5c6 /vchat-ui.c
parent71fb4ac25542721f3a2d42ac4eef0d7296968f82 (diff)
parent3297473435ad53b6691d6c772f83457a72134c48 (diff)
Merge from github
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-xvchat-ui.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vchat-ui.c b/vchat-ui.c
index f3e5af5..ba162a5 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -36,11 +36,11 @@
36#include "vchat-user.h" 36#include "vchat-user.h"
37 37
38/* version of this module */ 38/* version of this module */
39char *vchat_ui_version = "$Id$"; 39const char *vchat_ui_version = "vchat-ui.c $Id$";
40 40
41/* externally used variables */ 41/* externally used variables */
42/* current string in topic window */ 42/* current string in topic window */
43char topicstr[TOPICSTRSIZE] = "[] VChat 0.17"; 43char topicstr[TOPICSTRSIZE] = "[] VChat 0.19";
44/* current string in console window */ 44/* current string in console window */
45char consolestr[CONSOLESTRSIZE] = "[ Get help: .h for server /h for client commands"; 45char consolestr[CONSOLESTRSIZE] = "[ Get help: .h for server /h for client commands";
46 46
@@ -117,7 +117,7 @@ static void forceredraw_wrapper (int a) {forceredraw();}
117static void drawwin (WINDOW *win, struct sb_data *sb); 117static void drawwin (WINDOW *win, struct sb_data *sb);
118static int writescr (WINDOW *win, struct sb_entry *entry); 118static int writescr (WINDOW *win, struct sb_entry *entry);
119static int testfilter ( struct sb_entry *entry); 119static int testfilter ( struct sb_entry *entry);
120static int gettextwidth (char *textbuffer); 120static int gettextwidth (const char *textbuffer);
121static void resize_output (void); 121static void resize_output (void);
122static int getsbeheight (struct sb_entry *entry, const int xwidth, int needstime ); 122static int getsbeheight (struct sb_entry *entry, const int xwidth, int needstime );
123static int getsbdataheight (struct sb_data *data, const int xwidth, int needstime ); 123static int getsbdataheight (struct sb_data *data, const int xwidth, int needstime );
@@ -308,7 +308,7 @@ sb_clear ( struct sb_data **sb ) {
308}*/ 308}*/
309 309
310static struct sb_entry* 310static struct sb_entry*
311sb_add (struct sb_data *sb, char *line, time_t when) { 311sb_add (struct sb_data *sb, const char *line, time_t when) {
312 struct sb_entry *newone = malloc (sizeof(struct sb_entry)); 312 struct sb_entry *newone = malloc (sizeof(struct sb_entry));
313 if( newone ) { 313 if( newone ) {
314 if( sb->count == sb->scroll ) sb->scroll++; 314 if( sb->count == sb->scroll ) sb->scroll++;
@@ -350,7 +350,7 @@ void showout (void)
350 resize(0); 350 resize(0);
351} 351}
352 352
353void writeout (char *str) 353void writeout (const char *str)
354{ 354{
355 int i; 355 int i;
356 sb_add(sb_out,str,time(NULL)); 356 sb_add(sb_out,str,time(NULL));
@@ -865,7 +865,7 @@ resize (int signal)
865} 865}
866 866
867static int 867static int
868gettextwidth (char *textbuffer) 868gettextwidth (const char *textbuffer)
869{ 869{
870 int width = 0; 870 int width = 0;
871 871