Mercurial > hg > mlmmj
changeset 341:2a0150a1c9de
mlmmj-maintd.c:852: warning: long int format, time_t arg (arg 5)
author | mmj |
---|---|
date | Tue, 14 Sep 2004 21:04:21 +1000 |
parents | 42efdd1ccb12 |
children | 6b3e1584a0fd |
files | src/mlmmj-maintd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mlmmj-maintd.c Tue Sep 14 19:27:29 2004 +1000 +++ b/src/mlmmj-maintd.c Tue Sep 14 21:04:21 2004 +1000 @@ -849,7 +849,7 @@ /* index + ':' + time + '\n' + '\0' */ lenbuf = 20 + 1 + 20 + 2; s3 = mymalloc(lenbuf); - lenstr = snprintf(s3, lenbuf, "%ld:%ld\n", index, t); + lenstr = snprintf(s3, lenbuf, "%ld:%ld\n", index, (long)t); if (lenstr >= lenbuf) lenstr = lenbuf - 1; if (writen(fd, s3, lenstr) == -1) {