]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
cast usec to int, too
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Oct 2017 19:15:06 +0000 (15:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Oct 2017 19:15:06 +0000 (15:15 -0400)
src/modules/proto_detail/proto_detail_file.c

index c1c0e5cc183f80b4f467e6d2e2b889923db868ac..093dfe1272c4d4e08173b0238ed2a6a4eec3a77b 100644 (file)
@@ -244,7 +244,7 @@ static void work_exists(proto_detail_file_t *inst, int fd)
                when.tv_usec = USEC / 10;
 
                DEBUG3("Waiting %d.%06ds for lock on file %s",
-                      (int) when.tv_sec, when.tv_usec, inst->filename_work);
+                      (int) when.tv_sec, (int) when.tv_usec, inst->filename_work);
 
                fr_timeval_add(&when, &when, &now);
 
@@ -400,7 +400,7 @@ redo:
                when.tv_usec = 0;
 
                DEBUG3("Waiting %d.%06ds for new files in %s",
-                      (int) when.tv_sec, when.tv_usec, inst->name);
+                      (int) when.tv_sec, (int) when.tv_usec, inst->name);
 
                gettimeofday(&now, NULL);