1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Jimen Ching's patches to remove compiler warnings

[originally from svn r183]
This commit is contained in:
Simon Tatham 1999-07-20 13:01:56 +00:00
parent 3774094e46
commit 4e889024e3
5 changed files with 4 additions and 11 deletions

View File

@ -140,7 +140,7 @@ void do_text (Context, int, int, char *, int, unsigned long);
void set_title (char *);
void set_icon (char *);
void set_sbar (int, int, int);
Context get_ctx();
Context get_ctx(void);
void free_ctx (Context);
void palette_set (int, int, int, int);
void palette_reset (void);

5
ssh.c
View File

@ -76,7 +76,6 @@ static int s_read (char *buf, int len) {
static void c_write (char *buf, int len) {
while (len--) {
int new_head = (inbuf_head + 1) & INBUF_MASK;
int c = (unsigned char) *buf;
if (new_head != inbuf_reap) {
inbuf[inbuf_head] = *buf++;
inbuf_head = new_head;
@ -101,10 +100,8 @@ static void ssh_size(void);
static void ssh_gotdata(unsigned char *data, int datalen) {
static long len, biglen, to_read;
static unsigned char c, *p;
static unsigned char *p;
static int i, pad;
static char padding[8];
static unsigned char word[4];
crBegin;
while (1) {

View File

@ -171,7 +171,6 @@ static void s_write (void *buf, int len) {
static void c_write (char *buf, int len) {
while (len--) {
int new_head = (inbuf_head + 1) & INBUF_MASK;
int c = (unsigned char) *buf;
if (new_head != inbuf_reap) {
inbuf[inbuf_head] = *buf++;
inbuf_head = new_head;

View File

@ -42,8 +42,6 @@ static void mungestr(char *in, char *out) {
}
static void unmungestr(char *in, char *out) {
int candot = 0;
while (*in) {
if (*in == '%' && in[1] && in[2]) {
int i, j;

View File

@ -1412,7 +1412,7 @@ void set_sbar (int total, int start, int page) {
SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
}
Context get_ctx() {
Context get_ctx(void) {
HDC hdc;
if (hwnd) {
hdc = GetDC (hwnd);
@ -1540,11 +1540,10 @@ void get_clip (void **p, int *len) {
*/
void optimised_move (int to, int from, int lines) {
RECT r;
int min, max, d;
int min, max;
min = (to < from ? to : from);
max = to + from - min;
d = max - min;
r.left = 0; r.right = cols * font_width;
r.top = min * font_height; r.bottom = (max+lines) * font_height;