diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-08 11:32:35 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-08 11:32:35 +0000 |
commit | 7dfb23b93d6e69bea81a577dfa3c35a209603d45 (patch) | |
tree | d598e105969095378bd28730ecc35e2f060d1579 /irc/xaric/files/patch-misc.c | |
parent | fefe1b157b378b9e11d566869c1eb6240df29950 (diff) | |
download | ports-7dfb23b93d6e69bea81a577dfa3c35a209603d45.tar.gz ports-7dfb23b93d6e69bea81a577dfa3c35a209603d45.zip |
Notes
Diffstat (limited to 'irc/xaric/files/patch-misc.c')
-rw-r--r-- | irc/xaric/files/patch-misc.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/irc/xaric/files/patch-misc.c b/irc/xaric/files/patch-misc.c index 09195173b8ae..501384097ad9 100644 --- a/irc/xaric/files/patch-misc.c +++ b/irc/xaric/files/patch-misc.c @@ -1,11 +1,20 @@ ---- misc.c.orig Sun Jan 8 07:56:40 2006 -+++ misc.c Sun Jan 8 07:57:39 2006 +--- misc.c.orig Wed Nov 30 11:06:26 2005 ++++ misc.c Sun Jan 8 21:45:27 2006 +@@ -104,7 +104,7 @@ + + char *convert_time(time_t ltime) + { +- time_t days = 0, hours = 0, minutes = 0, seconds = 0; ++ unsigned int days = 0, hours = 0, minutes = 0, seconds = 0; + static char buffer[100]; + + *buffer = '\0'; @@ -114,7 +114,7 @@ ltime = (ltime - minutes) / 60; hours = ltime % 24; days = (ltime - hours) / 24; - sprintf(buffer, "%2ldd %2ldh %2ldm %2lds", days, hours, minutes, seconds); -+ sprintf(buffer, "%2dd %2dh %2dm %2ds", days, hours, minutes, seconds); ++ sprintf(buffer, "%2ud %2uh %2um %2us", days, hours, minutes, seconds); return (*buffer ? buffer : empty_str); } |