summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-08-31 17:08:36 +0100
committerFreeArtMan <dos21h@gmail.com>2015-08-31 17:08:36 +0100
commit07a0921a8e81ccb0388a71eb78767b1d2ae5d77f (patch)
treeef097c53c6635df04660eb933da223fce8830f23
parent8f893cfe961a3be8c688e9d657e656e03749477b (diff)
downloadmicrobbs-07a0921a8e81ccb0388a71eb78767b1d2ae5d77f.tar.gz
microbbs-07a0921a8e81ccb0388a71eb78767b1d2ae5d77f.zip
Fixed few warnings
-rw-r--r--captcha.c2
-rw-r--r--motd.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/captcha.c b/captcha.c
index 93cadde..7189793 100644
--- a/captcha.c
+++ b/captcha.c
@@ -9,8 +9,6 @@
int captcha_test1( term_screen *ts)
{
int ret = 0;
- const int s_size = 2;
- char s[s_size];
int column=0, row=0;
int c=0;
diff --git a/motd.c b/motd.c
index 19eff13..a8f7ada 100644
--- a/motd.c
+++ b/motd.c
@@ -10,7 +10,7 @@ int bbs_motd_draw( term_screen *ts, const char *fname )
int ret=0;
const int buf_size=80*26+1;
char buf[buf_size];
- int row=0,column=0;
+ //int row=0,column=0;
FILE *f = fopen( fname, "r" );
@@ -21,8 +21,8 @@ int bbs_motd_draw( term_screen *ts, const char *fname )
}
term_clr_scr( ts );
- row = term_get_maxrow( ts );
- column = term_get_maxcol( ts );
+ //row = term_get_maxrow( ts );
+ //column = term_get_maxcol( ts );
term_cur_set_r( ts, ++posr );
term_cur_set_c( ts, 0 );