Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
1e15ff8d
Commit
1e15ff8d
authored
May 18, 2006
by
rswindell
Browse files
Fix warnings and errors reported by MSVC6.
parent
492c2cb7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
8 deletions
+12
-8
src/conio/ansi_cio.c
src/conio/ansi_cio.c
+0
-1
src/syncterm/bbslist.c
src/syncterm/bbslist.c
+4
-3
src/syncterm/bbslist.h
src/syncterm/bbslist.h
+4
-0
src/syncterm/syncterm.c
src/syncterm/syncterm.c
+0
-4
src/syncterm/syncterm.h
src/syncterm/syncterm.h
+4
-0
No files found.
src/conio/ansi_cio.c
View file @
1e15ff8d
...
...
@@ -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
);
...
...
src/syncterm/bbslist.c
View file @
1e15ff8d
...
...
@@ -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
[]
=
{
...
...
src/syncterm/bbslist.h
View file @
1e15ff8d
...
...
@@ -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
...
...
src/syncterm/syncterm.c
View file @
1e15ff8d
...
...
@@ -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
;
...
...
src/syncterm/syncterm.h
View file @
1e15ff8d
...
...
@@ -3,6 +3,10 @@
#include "bbslist.h"
#if defined(_WIN32)
#include <malloc.h>
/* alloca() on Win32 */
#endif
enum
{
SYNCTERM_PATH_INI
,
SYNCTERM_PATH_LIST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment