summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvchat-client.c6
-rwxr-xr-xvchat-commands.c11
-rwxr-xr-xvchat-protocol.c6
-rwxr-xr-xvchat-ui.c6
-rwxr-xr-xvchat.h2
5 files changed, 20 insertions, 11 deletions
diff --git a/vchat-client.c b/vchat-client.c
index db31c7c..39b42d9 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -292,10 +292,10 @@ getintoption (confopt option)
292#endif 292#endif
293 for (i = 0; configoptions[i].type != CO_NIL; i++) 293 for (i = 0; configoptions[i].type != CO_NIL; i++)
294 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) { 294 if ((configoptions[i].id == option) && (configoptions[i].type == CO_INT)) {
295 if ((uintptr_t)configoptions[i].value == -1) 295 if ((intptr_t)configoptions[i].value == -1)
296 return (uintptr_t) configoptions[i].defaultvalue; 296 return (intptr_t) configoptions[i].defaultvalue;
297 else 297 else
298 return (uintptr_t) configoptions[i].value; 298 return (intptr_t) configoptions[i].value;
299 } 299 }
300 return 0; 300 return 0;
301} 301}
diff --git a/vchat-commands.c b/vchat-commands.c
index dc46b9c..1b69a94 100755
--- a/vchat-commands.c
+++ b/vchat-commands.c
@@ -141,7 +141,7 @@ translatecommand( char **cmd)
141 141
142/* handle thought */ 142/* handle thought */
143static void 143static void
144dothink( char *tail, char nice ) 144dothink(const char *tail, const char nice )
145{ 145{
146 while( *tail == ' ' ) tail++; 146 while( *tail == ' ' ) tail++;
147 147
@@ -157,7 +157,7 @@ dothink( char *tail, char nice )
157 157
158/* handle action */ 158/* handle action */
159static void 159static void
160doaction( char *tail ) 160doaction(const char *tail )
161{ 161{
162 while( *tail == ' ' ) tail++; 162 while( *tail == ' ' ) tail++;
163 163
@@ -177,7 +177,7 @@ doaction( char *tail )
177 177
178/* handle private message outgoing */ 178/* handle private message outgoing */
179static void 179static void
180privatemessagetx ( char *tail ) { 180privatemessagetx (char *tail ) {
181 char *mesg; 181 char *mesg;
182 182
183 /* find nick */ 183 /* find nick */
@@ -406,6 +406,7 @@ command_rmflt (char *tail) {
406/* list filters */ 406/* list filters */
407static void 407static void
408command_lsflt (char *tail) { 408command_lsflt (char *tail) {
409 (void)tail;
409 listfilters(); 410 listfilters();
410} 411}
411 412
@@ -413,13 +414,14 @@ command_lsflt (char *tail) {
413static void 414static void
414command_action(char *tail) 415command_action(char *tail)
415{ 416{
416 doaction( tail); 417 doaction(tail);
417} 418}
418 419
419/* handle a "/reconnect" request */ 420/* handle a "/reconnect" request */
420static void 421static void
421command_reconnect(char *tail) 422command_reconnect(char *tail)
422{ 423{
424 (void)tail;
423 status = 0; 425 status = 0;
424 wantreconnect = 1; 426 wantreconnect = 1;
425 ownquit = 0; 427 ownquit = 0;
@@ -446,6 +448,7 @@ command_quit(char *tail)
446void 448void
447command_version(char *tail) 449command_version(char *tail)
448{ 450{
451 (void)tail;
449 /* output internal versions of all modules */ 452 /* output internal versions of all modules */
450 flushout(); 453 flushout();
451 writeout (vchat_cl_version); 454 writeout (vchat_cl_version);
diff --git a/vchat-protocol.c b/vchat-protocol.c
index 77e45ec..2b98779 100755
--- a/vchat-protocol.c
+++ b/vchat-protocol.c
@@ -116,7 +116,8 @@ pubthoughts (char *message)
116static void 116static void
117serverlogin (char *message) 117serverlogin (char *message)
118{ 118{
119 int utf8=!strcmp(nl_langinfo(CODESET), "UTF-8"); 119 (void)message;
120 int utf8 = !strcmp(nl_langinfo(CODESET), "UTF-8");
120 if (utf8) 121 if (utf8)
121 vc_sendmessage(".e utf8"); 122 vc_sendmessage(".e utf8");
122} 123}
@@ -262,8 +263,9 @@ ownjoin (int channel)
262 263
263/* this user changes his nick */ 264/* this user changes his nick */
264void 265void
265ownnickchange (char *newnick) 266ownnickchange (const char *newnick)
266{ 267{
268 (void)newnick;
267} 269}
268 270
269/* parse and handle a nick error message 271/* parse and handle a nick error message
diff --git a/vchat-ui.c b/vchat-ui.c
index 745ada8..0295f2a 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -112,7 +112,7 @@ static int currentstamp = 0;
112 112
113static void resize (int); 113static void resize (int);
114static void forceredraw (void); 114static void forceredraw (void);
115static void forceredraw_wrapper (int a) {forceredraw();} 115static void forceredraw_wrapper (int a) {(void)a; forceredraw();}
116static void drawwin (WINDOW *win, struct sb_data *sb); 116static void drawwin (WINDOW *win, struct sb_data *sb);
117static int writescr (WINDOW *win, struct sb_entry *entry); 117static int writescr (WINDOW *win, struct sb_entry *entry);
118static int testfilter ( struct sb_entry *entry); 118static int testfilter ( struct sb_entry *entry);
@@ -760,6 +760,7 @@ void
760resize (int signal) 760resize (int signal)
761{ 761{
762 int xsize,ysize,topicheight=topic?1:0; 762 int xsize,ysize,topicheight=topic?1:0;
763 (void)signal;
763 764
764 ttgtsz(&xsize,&ysize); 765 ttgtsz(&xsize,&ysize);
765 resizeterm(ysize,xsize); 766 resizeterm(ysize,xsize);
@@ -1383,6 +1384,8 @@ passprompt (char *buf, int size, int rwflag, void *userdata)
1383{ 1384{
1384 int i; 1385 int i;
1385 char *passphrase = NULL; 1386 char *passphrase = NULL;
1387 (void)rwflag;
1388 (void)userdata;
1386 1389
1387 /* use special non-revealing redraw function */ 1390 /* use special non-revealing redraw function */
1388 /* FIXME: passphrase isn't protected against e.g. swapping */ 1391 /* FIXME: passphrase isn't protected against e.g. swapping */
@@ -1476,6 +1479,7 @@ removefromfilterlist( int(*test)(filt *flt, void *data, char colour), void *data
1476 1479
1477static int 1480static int
1478test_clear( filt *flt, void *data, char c ) { 1481test_clear( filt *flt, void *data, char c ) {
1482 (void)data;
1479 if( !c || ( c == flt->colour ) || ( (c == '*') && (flt->colour != '-') && (flt->colour != '+') ) ) 1483 if( !c || ( c == flt->colour ) || ( (c == '*') && (flt->colour != '-') && (flt->colour != '+') ) )
1480 return RMFILTER_RMANDCONT; 1484 return RMFILTER_RMANDCONT;
1481 else 1485 else
diff --git a/vchat.h b/vchat.h
index 0045127..c6077a6 100755
--- a/vchat.h
+++ b/vchat.h
@@ -147,7 +147,7 @@ void protocol_parsemsg (char *message);
147/* helpers for vchat-user.c */ 147/* helpers for vchat-user.c */
148void ownjoin (int channel); 148void ownjoin (int channel);
149void ownleave (int channel); 149void ownleave (int channel);
150void ownnickchange (char *newnick); 150void ownnickchange (const char *newnick);
151 151
152/* vchat-commands.c */ 152/* vchat-commands.c */
153extern const char *vchat_cm_version; 153extern const char *vchat_cm_version;