Finish making msvc6 happy
This commit is contained in:
parent
fe2513a18b
commit
72c4c38e37
@ -49,7 +49,7 @@ unsigned long libssh2_ntohu32(const unsigned char *buf)
|
|||||||
* Note: Some 32-bit platforms have issues with bitops on long longs
|
* Note: Some 32-bit platforms have issues with bitops on long longs
|
||||||
* Work around this by doing expensive (but safer) arithmetic ops with optimization defying parentheses
|
* Work around this by doing expensive (but safer) arithmetic ops with optimization defying parentheses
|
||||||
*/
|
*/
|
||||||
unsigned long long libssh2_ntohu64(const unsigned char *buf)
|
libssh2_uint64_t libssh2_ntohu64(const unsigned char *buf)
|
||||||
{
|
{
|
||||||
unsigned long msl, lsl;
|
unsigned long msl, lsl;
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ void libssh2_htonu32(unsigned char *buf, unsigned long value)
|
|||||||
|
|
||||||
/* {{{ libssh2_htonu64
|
/* {{{ libssh2_htonu64
|
||||||
*/
|
*/
|
||||||
void libssh2_htonu64(unsigned char *buf, unsigned long long value)
|
void libssh2_htonu64(unsigned char *buf, libssh2_uint64_t value)
|
||||||
{
|
{
|
||||||
unsigned long msl = (value / 65536) / 65536;
|
unsigned long msl = (value / 65536) / 65536;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user