summaryrefslogtreecommitdiffstats
path: root/libssh/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-25 23:19:41 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-25 23:19:41 +0200
commit28b5d0f8751a8979231b3d2e6ccf182256219d52 (patch)
tree30618b26293838a766e56664ffcdbc0d583fb63c /libssh/misc.c
parentba217dec1c7de84b1e51807660ccd2cc86f8dde4 (diff)
downloadlibssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.tar.gz
libssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.tar.xz
libssh-28b5d0f8751a8979231b3d2e6ccf182256219d52.zip
Switch completly to stdint types.
Diffstat (limited to 'libssh/misc.c')
-rw-r--r--libssh/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index 2de8b56..5ab0501 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -104,16 +104,16 @@ int ssh_file_readaccess_ok(const char *file) {
return 1;
}
-u64 ntohll(u64 a) {
+uint64_t ntohll(uint64_t a) {
#ifdef WORDS_BIGENDIAN
return a;
#else
- u32 low = a & 0xffffffff;
- u32 high = a >> 32 ;
+ uint32_t low = a & 0xffffffff;
+ uint32_t high = a >> 32 ;
low = ntohl(low);
high = ntohl(high);
- return ((((u64) low) << 32) | ( high));
+ return ((((uint64_t) low) << 32) | ( high));
#endif
}