Skip to content
Snippets Groups Projects
Commit f726da9a authored by Daniel Salzman's avatar Daniel Salzman
Browse files

remote: fix printf warning on FBSD 32bit

parent d5dbffd3
No related branches found
No related tags found
No related merge requests found
......@@ -301,10 +301,10 @@ static int remote_c_zonestatus(server_t *s, remote_cmdargs_t* a)
*/
if (dif.tv_sec < 0) {
memcpy(when, "busy", 5);
} else if (snprintf(when, 64, "in %luh%lum%lus",
dif.tv_sec/3600,
(dif.tv_sec % 3600)/60,
dif.tv_sec % 60) < 0) {
} else if (snprintf(when, 64, "in %uh%um%us",
(unsigned int)dif.tv_sec / 3600,
(unsigned int)(dif.tv_sec % 3600) / 60,
(unsigned int)dif.tv_sec % 60) < 0) {
free(when);
ret = KNOT_ESPACE;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment