diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:49:32 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:49:32 +0100 |
commit | b12f3f38c722e31da7dca88fe6d56ae65692d2af (patch) | |
tree | ee805f53cf350eb9853f330d3a0d91ffa9f134fb /src/log.c | |
parent | cb165df64eef762e1146bcd5bd21944c2c09ca4b (diff) | |
download | libssh-b12f3f38c722e31da7dca88fe6d56ae65692d2af.tar.gz libssh-b12f3f38c722e31da7dca88fe6d56ae65692d2af.tar.xz libssh-b12f3f38c722e31da7dca88fe6d56ae65692d2af.zip |
Fix cast warnings on 64bits
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ static int current_timestring(int hires, char *buf, size_t len) if (hires) { strftime(tbuf, sizeof(tbuf) - 1, "%Y/%m/%d %H:%M:%S", tm); - snprintf(buf, len, "%s.%06ld", tbuf, tv.tv_usec); + snprintf(buf, len, "%s.%06ld", tbuf, (long)tv.tv_usec); } else { strftime(tbuf, sizeof(tbuf) - 1, "%Y/%m/%d %H:%M:%S", tm); snprintf(buf, len, "%s", tbuf); |