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:51:17 +0100 |
| commit | 0940c6f1b00bd4b6a0bcac75429adb1c0c121a29 (patch) | |
| tree | fa18a807da2b266768f5627066d9c1848b188ab6 /src/log.c | |
| parent | 2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d (diff) | |
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); |
