Mercurial > vim
comparison src/channel.c @ 10996:2f041b367cd9 v8.0.0387
patch 8.0.0387: compiler warnings
commit https://github.com/vim/vim/commit/b113c3a618113122e62697dd73427261f8c51b2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 28 21:26:17 2017 +0100
patch 8.0.0387: compiler warnings
Problem: compiler warnings
Solution: Add type casts. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 28 Feb 2017 21:30:06 +0100 |
parents | c31782d57569 |
children | e45c6e4d78af |
comparison
equal
deleted
inserted
replaced
10995:f5c48a96a0b7 | 10996:2f041b367cd9 |
---|---|
1964 { | 1964 { |
1965 /* First time encountering incomplete message or after receiving | 1965 /* First time encountering incomplete message or after receiving |
1966 * more (but still incomplete): set a deadline of 100 msec. */ | 1966 * more (but still incomplete): set a deadline of 100 msec. */ |
1967 ch_logn(channel, | 1967 ch_logn(channel, |
1968 "Incomplete message (%d bytes) - wait 100 msec for more", | 1968 "Incomplete message (%d bytes) - wait 100 msec for more", |
1969 buflen); | 1969 (int)buflen); |
1970 reader.js_used = 0; | 1970 reader.js_used = 0; |
1971 chanpart->ch_wait_len = buflen; | 1971 chanpart->ch_wait_len = buflen; |
1972 #ifdef WIN32 | 1972 #ifdef WIN32 |
1973 chanpart->ch_deadline = GetTickCount() + 100L; | 1973 chanpart->ch_deadline = GetTickCount() + 100L; |
1974 #else | 1974 #else |
3297 return NULL; | 3297 return NULL; |
3298 } | 3298 } |
3299 channel_read(channel, part, "channel_read_block"); | 3299 channel_read(channel, part, "channel_read_block"); |
3300 } | 3300 } |
3301 | 3301 |
3302 /* We have a complete message now. */ | |
3302 if (mode == MODE_RAW) | 3303 if (mode == MODE_RAW) |
3303 { | 3304 { |
3304 msg = channel_get_all(channel, part); | 3305 msg = channel_get_all(channel, part); |
3305 } | 3306 } |
3306 else | 3307 else |