summaryrefslogtreecommitdiff
path: root/toxcore/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/util.c')
-rw-r--r--toxcore/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/util.c b/toxcore/util.c
index 8960fe36..e1c46ee5 100644
--- a/toxcore/util.c
+++ b/toxcore/util.c
@@ -52,14 +52,14 @@ void loginit(uint16_t port)
52 if (logfile) 52 if (logfile)
53 fclose(logfile); 53 fclose(logfile);
54 54
55 sprintf(logbuffer, "%u-%u.log", ntohs(port), now()); 55 sprintf(logbuffer, "%u-%u.log", ntohs(port), (uint32_t)now());
56 logfile = fopen(logbuffer, "w"); 56 logfile = fopen(logbuffer, "w");
57 starttime = now(); 57 starttime = now();
58}; 58};
59void loglog(char *text) 59void loglog(char *text)
60{ 60{
61 if (logfile) { 61 if (logfile) {
62 fprintf(logfile, "%4u ", now() - starttime); 62 fprintf(logfile, "%4u ", (uint32_t)(now() - starttime));
63 fprintf(logfile, text); 63 fprintf(logfile, text);
64 fflush(logfile); 64 fflush(logfile);
65 } 65 }