From: Wayne Davison Date: Wed, 21 Sep 2005 17:42:15 +0000 (+0000) Subject: Cast some time values to (int), just to silence some warnings on X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e31058d41ebb079a76200ae547a42a9b352b8260 Cast some time values to (int), just to silence some warnings on Stratus VOS. --- diff --git a/tls.c b/tls.c index 6c0466f8..569c55b2 100644 --- a/tls.c +++ b/tls.c @@ -100,12 +100,12 @@ static void list_file(const char *fname) mt = gmtime(&buf.st_mtime); sprintf(datebuf, "%04d-%02d-%02d %02d:%02d:%02d", - mt->tm_year + 1900, - mt->tm_mon + 1, - mt->tm_mday, - mt->tm_hour, - mt->tm_min, - mt->tm_sec); + (int)mt->tm_year + 1900, + (int)mt->tm_mon + 1, + (int)mt->tm_mday, + (int)mt->tm_hour, + (int)mt->tm_min, + (int)mt->tm_sec); } else { strcpy(datebuf, " "); }