Commit 1e15ff8d authored by rswindell's avatar rswindell
Browse files

Fix warnings and errors reported by MSVC6.

parent 492c2cb7
......@@ -222,7 +222,6 @@ int ansi_puttext(int sx, int sy, int ex, int ey, void* buf)
struct text_info ti;
int attrib;
unsigned char *fill = (unsigned char*)buf;
char str[16];
gettextinfo(&ti);
......
......@@ -16,6 +16,8 @@
#include "keys.h"
#include "mouse.h"
#include "cterm.h"
#include "window.h"
#include "term.h"
char *screen_modes[]={"Current", "80x25", "80x28", "80x43", "80x50", "80x60", NULL};
char *log_levels[]={"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Info", "Debug", NULL};
......@@ -56,7 +58,7 @@ void viewofflinescroll(void)
for(i=0;!i;) {
if(top<1)
top=1;
if(top>scrollback_lines)
if(top>(int)scrollback_lines)
top=scrollback_lines;
puttext(((txtinfo.screenwidth-80)/2)+1,1,(txtinfo.screenwidth-80)/2+80,txtinfo.screenheight,scrollback_buf+(80*2*top));
cputs("Scrollback");
......@@ -686,7 +688,7 @@ void change_settings(void)
uifc.msg("Cannot allocate space for scrollback.");
}
else {
if(scrollback_lines > j)
if(scrollback_lines > (unsigned)j)
scrollback_lines=j;
scrollback_buf=tmpscroll;
settings.backlines=j;
......@@ -722,7 +724,6 @@ struct bbslist *show_bbslist(int mode)
char str[128];
char *YesNo[3]={"Yes","No",""};
char title[1024];
char currtitle[1024];
char *p;
char addy[LIST_ADDR_MAX+1];
char *settings_menu[]= {
......
......@@ -9,6 +9,10 @@
#include "ini_file.h"
#include <time.h>
#if defined(_WIN32)
#include <malloc.h> /* alloca() on Win32 */
#endif
#define LIST_NAME_MAX 30
#define LIST_ADDR_MAX 64
#define MAX_USER_LEN 30
......
......@@ -74,7 +74,6 @@ void parse_url(char *url, struct bbslist *bbs, int dflt_conn_type, int force_def
{
char *p1, *p2, *p3;
struct bbslist *list[MAX_OPTS+1];
char path[MAX_PATH+1];
char listpath[MAX_PATH+1];
int listcount=0, i;
......@@ -301,9 +300,6 @@ int main(int argc, char **argv)
char ext[MAX_PATH+1];
/* Command-line parsing vars */
char url[MAX_PATH+1];
char *p1;
char *p2;
char *p3;
int i;
int ciolib_mode=CIOLIB_MODE_AUTO;
str_list_t inifile;
......
......@@ -3,6 +3,10 @@
#include "bbslist.h"
#if defined(_WIN32)
#include <malloc.h> /* alloca() on Win32 */
#endif
enum {
SYNCTERM_PATH_INI
,SYNCTERM_PATH_LIST
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment