mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Jimen Ching's patches to remove compiler warnings
[originally from svn r183]
This commit is contained in:
parent
3774094e46
commit
4e889024e3
2
putty.h
2
putty.h
@ -140,7 +140,7 @@ void do_text (Context, int, int, char *, int, unsigned long);
|
|||||||
void set_title (char *);
|
void set_title (char *);
|
||||||
void set_icon (char *);
|
void set_icon (char *);
|
||||||
void set_sbar (int, int, int);
|
void set_sbar (int, int, int);
|
||||||
Context get_ctx();
|
Context get_ctx(void);
|
||||||
void free_ctx (Context);
|
void free_ctx (Context);
|
||||||
void palette_set (int, int, int, int);
|
void palette_set (int, int, int, int);
|
||||||
void palette_reset (void);
|
void palette_reset (void);
|
||||||
|
5
ssh.c
5
ssh.c
@ -76,7 +76,6 @@ static int s_read (char *buf, int len) {
|
|||||||
static void c_write (char *buf, int len) {
|
static void c_write (char *buf, int len) {
|
||||||
while (len--) {
|
while (len--) {
|
||||||
int new_head = (inbuf_head + 1) & INBUF_MASK;
|
int new_head = (inbuf_head + 1) & INBUF_MASK;
|
||||||
int c = (unsigned char) *buf;
|
|
||||||
if (new_head != inbuf_reap) {
|
if (new_head != inbuf_reap) {
|
||||||
inbuf[inbuf_head] = *buf++;
|
inbuf[inbuf_head] = *buf++;
|
||||||
inbuf_head = new_head;
|
inbuf_head = new_head;
|
||||||
@ -101,10 +100,8 @@ static void ssh_size(void);
|
|||||||
|
|
||||||
static void ssh_gotdata(unsigned char *data, int datalen) {
|
static void ssh_gotdata(unsigned char *data, int datalen) {
|
||||||
static long len, biglen, to_read;
|
static long len, biglen, to_read;
|
||||||
static unsigned char c, *p;
|
static unsigned char *p;
|
||||||
static int i, pad;
|
static int i, pad;
|
||||||
static char padding[8];
|
|
||||||
static unsigned char word[4];
|
|
||||||
|
|
||||||
crBegin;
|
crBegin;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
1
telnet.c
1
telnet.c
@ -171,7 +171,6 @@ static void s_write (void *buf, int len) {
|
|||||||
static void c_write (char *buf, int len) {
|
static void c_write (char *buf, int len) {
|
||||||
while (len--) {
|
while (len--) {
|
||||||
int new_head = (inbuf_head + 1) & INBUF_MASK;
|
int new_head = (inbuf_head + 1) & INBUF_MASK;
|
||||||
int c = (unsigned char) *buf;
|
|
||||||
if (new_head != inbuf_reap) {
|
if (new_head != inbuf_reap) {
|
||||||
inbuf[inbuf_head] = *buf++;
|
inbuf[inbuf_head] = *buf++;
|
||||||
inbuf_head = new_head;
|
inbuf_head = new_head;
|
||||||
|
2
windlg.c
2
windlg.c
@ -42,8 +42,6 @@ static void mungestr(char *in, char *out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void unmungestr(char *in, char *out) {
|
static void unmungestr(char *in, char *out) {
|
||||||
int candot = 0;
|
|
||||||
|
|
||||||
while (*in) {
|
while (*in) {
|
||||||
if (*in == '%' && in[1] && in[2]) {
|
if (*in == '%' && in[1] && in[2]) {
|
||||||
int i, j;
|
int i, j;
|
||||||
|
5
window.c
5
window.c
@ -1412,7 +1412,7 @@ void set_sbar (int total, int start, int page) {
|
|||||||
SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
|
SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Context get_ctx() {
|
Context get_ctx(void) {
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
if (hwnd) {
|
if (hwnd) {
|
||||||
hdc = GetDC (hwnd);
|
hdc = GetDC (hwnd);
|
||||||
@ -1540,11 +1540,10 @@ void get_clip (void **p, int *len) {
|
|||||||
*/
|
*/
|
||||||
void optimised_move (int to, int from, int lines) {
|
void optimised_move (int to, int from, int lines) {
|
||||||
RECT r;
|
RECT r;
|
||||||
int min, max, d;
|
int min, max;
|
||||||
|
|
||||||
min = (to < from ? to : from);
|
min = (to < from ? to : from);
|
||||||
max = to + from - min;
|
max = to + from - min;
|
||||||
d = max - min;
|
|
||||||
|
|
||||||
r.left = 0; r.right = cols * font_width;
|
r.left = 0; r.right = cols * font_width;
|
||||||
r.top = min * font_height; r.bottom = (max+lines) * font_height;
|
r.top = min * font_height; r.bottom = (max+lines) * font_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user