1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05: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

@ -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;