[Git][NTPsec/ntpsec][master] Fix warning on FreeBSD 9.3

Hal Murray gitlab at mg.gitlab.com
Fri Nov 27 02:57:55 UTC 2015


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
46e6e82b by Hal Murray at 2015-11-26T18:55:23Z
Fix warning on FreeBSD 9.3

- - - - -


1 changed file:

- tests/libntp/tstotv.c


Changes:

=====================================
tests/libntp/tstotv.c
=====================================
--- a/tests/libntp/tstotv.c
+++ b/tests/libntp/tstotv.c
@@ -19,10 +19,10 @@ static bool IsEqual(const struct timeval *expected, const struct timeval *actual
 		// Success
 		return true;
 	} else {
-		/* long cast is required on Darwin */
+		/* long cast is required on Darwin and/or FreeBSD 9.3 */
 		printf("Expected: %ld.%ld but was %ld.%ld\n",
-		       expected->tv_sec, (long)expected->tv_usec,
-		       actual->tv_sec, (long)actual->tv_usec);
+		       (long)expected->tv_sec, (long)expected->tv_usec,
+		       (long)actual->tv_sec, (long)actual->tv_usec);
 		return false;
 	}
 }



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/46e6e82b290a390dcd524d305517cd92375f9b17
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151127/7db8fb51/attachment.html>


More information about the vc mailing list