From 459f8f201393ac458445aebbd14c45bf4d6f5912 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 9 Aug 2016 13:46:41 +0100 Subject: Check code formatting on Travis. We run astyle on Travis and check if there is a diff. The build terminates if git finds a difference. --- toxcore/tox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index 23d0d3e4..b642db75 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -87,11 +87,11 @@ uint32_t tox_version_patch(void) bool tox_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch) { - return (TOX_VERSION_MAJOR == major && /* Force the major version */ + return (TOX_VERSION_MAJOR == major && /* Force the major version */ (TOX_VERSION_MINOR > minor || /* Current minor version must be newer than requested -- or -- */ - (TOX_VERSION_MINOR == minor && TOX_VERSION_PATCH >= patch) /* the patch must be the same or newer */ + (TOX_VERSION_MINOR == minor && TOX_VERSION_PATCH >= patch) /* the patch must be the same or newer */ ) - ); + ); } -- cgit v1.2.3