Skip to content
Snippets Groups Projects
Commit f397db14 authored by rswindell's avatar rswindell
Browse files

Fixed some bcc32-exposed warnings.

Fixed typos in ANSI music help.
parent 978cbf22
No related branches found
No related tags found
No related merge requests found
...@@ -397,12 +397,11 @@ static int recv_byte(void* unused, unsigned timeout) ...@@ -397,12 +397,11 @@ static int recv_byte(void* unused, unsigned timeout)
void purge_recv(void) void purge_recv(void)
{ {
int ch;
unsigned count=0; unsigned count=0;
lprintf(LOG_NOTICE,"Purging receive buffer..."); lprintf(LOG_NOTICE,"Purging receive buffer...");
YIELD(); YIELD();
while((ch=recv_byte(NULL,0)) >= 0) { while(recv_byte(NULL,0) >= 0) {
YIELD(); YIELD();
count++; count++;
} }
...@@ -546,7 +545,7 @@ void erase_transfer_window(void) { ...@@ -546,7 +545,7 @@ void erase_transfer_window(void) {
_setcursortype(_NORMALCURSOR); _setcursortype(_NORMALCURSOR);
} }
static binary_mode_on(struct bbslist *bbs) static void binary_mode_on(struct bbslist *bbs)
{ {
if(bbs->conn_type == CONN_TYPE_TELNET) { if(bbs->conn_type == CONN_TYPE_TELNET) {
request_telnet_opt(TELNET_DO,TELNET_BINARY_TX); request_telnet_opt(TELNET_DO,TELNET_BINARY_TX);
...@@ -554,7 +553,7 @@ static binary_mode_on(struct bbslist *bbs) ...@@ -554,7 +553,7 @@ static binary_mode_on(struct bbslist *bbs)
} }
} }
static binary_mode_off(struct bbslist *bbs) static void binary_mode_off(struct bbslist *bbs)
{ {
if(bbs->conn_type == CONN_TYPE_TELNET) { if(bbs->conn_type == CONN_TYPE_TELNET) {
request_telnet_opt(TELNET_DONT,TELNET_BINARY_TX); request_telnet_opt(TELNET_DONT,TELNET_BINARY_TX);
...@@ -562,7 +561,7 @@ static binary_mode_off(struct bbslist *bbs) ...@@ -562,7 +561,7 @@ static binary_mode_off(struct bbslist *bbs)
} }
} }
void ascii_upload(FILE *fp, char *path); void ascii_upload(FILE *fp);
void zmodem_upload(struct bbslist *bbs, FILE *fp, char *path); void zmodem_upload(struct bbslist *bbs, FILE *fp, char *path);
void begin_upload(struct bbslist *bbs, BOOL autozm) void begin_upload(struct bbslist *bbs, BOOL autozm)
...@@ -610,7 +609,7 @@ void begin_upload(struct bbslist *bbs, BOOL autozm) ...@@ -610,7 +609,7 @@ void begin_upload(struct bbslist *bbs, BOOL autozm)
zmodem_upload(bbs, fp, path); zmodem_upload(bbs, fp, path);
break; break;
case 1: case 1:
ascii_upload(fp, path); ascii_upload(fp);
break; break;
} }
} }
...@@ -804,7 +803,7 @@ void guts_transfer(struct bbslist *bbs) ...@@ -804,7 +803,7 @@ void guts_transfer(struct bbslist *bbs)
} }
#endif #endif
void ascii_upload(FILE *fp, char *path) void ascii_upload(FILE *fp)
{ {
char linebuf[1024+2]; /* One extra for terminator, one extra for added CR */ char linebuf[1024+2]; /* One extra for terminator, one extra for added CR */
char *p; char *p;
...@@ -949,8 +948,8 @@ void music_control(struct bbslist *bbs) ...@@ -949,8 +948,8 @@ void music_control(struct bbslist *bbs)
"so-called ANSI music replaced the Delete Line ANSI sequence. Many\n" "so-called ANSI music replaced the Delete Line ANSI sequence. Many\n"
"full-screen editors use DL, and to this day, some programs (Such as\n" "full-screen editors use DL, and to this day, some programs (Such as\n"
"BitchX) require it to run.\n\n" "BitchX) require it to run.\n\n"
"To deal with this, BananaCom decided to use what *they* though was an\n" "To deal with this, BananaCom decided to use what *they* thought was an\n"
"unspecified escape code ESC[N for ANSI music. Unfortunately, this is\n" "unspecified escape code, ESC[N, for ANSI music. Unfortunately, this is\n"
"broken also. Although rarely implemented in BBS clients, ESC[N is\n" "broken also. Although rarely implemented in BBS clients, ESC[N is\n"
"the erase field sequence.\n\n" "the erase field sequence.\n\n"
"SyncTERM has now defined a third ANSI music sequence which *IS* legal\n" "SyncTERM has now defined a third ANSI music sequence which *IS* legal\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment