Commit c8ecb463 authored by Karl Heyes's avatar Karl Heyes

remove warning wrt time_t

svn path=/trunk/icecast/; revision=5874
parent 6ba8c0b2
......@@ -190,7 +190,8 @@ xmlDocPtr admin_build_sourcelist(char *current_source)
source->fallback_mount:"");
snprintf(buf, sizeof(buf), "%ld", source->listeners);
xmlNewChild(srcnode, NULL, "listeners", buf);
snprintf(buf, sizeof(buf), "%ld", now - source->con->con_time);
snprintf(buf, sizeof(buf), "%lu",
(unsigned long)(now - source->con->con_time));
xmlNewChild(srcnode, NULL, "Connected", buf);
xmlNewChild(srcnode, NULL, "Format",
source->format->format_description);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment