diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-09 13:46:41 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-12 01:00:00 +0100 |
commit | 459f8f201393ac458445aebbd14c45bf4d6f5912 (patch) | |
tree | 67c7eb3c6338f701cdbd3fae808b45fa126fcd74 /toxencryptsave | |
parent | 8339e3449f41f5d6edd16a8657f7faa84040fdc3 (diff) |
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.
Diffstat (limited to 'toxencryptsave')
-rw-r--r-- | toxencryptsave/toxencryptsave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c index bbe0422f..267bd813 100644 --- a/toxencryptsave/toxencryptsave.c +++ b/toxencryptsave/toxencryptsave.c | |||
@@ -64,11 +64,11 @@ uint32_t toxes_version_patch(void) | |||
64 | 64 | ||
65 | bool toxes_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch) | 65 | bool toxes_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch) |
66 | { | 66 | { |
67 | return (TOXES_VERSION_MAJOR == major && /* Force the major version */ | 67 | return (TOXES_VERSION_MAJOR == major && /* Force the major version */ |
68 | (TOXES_VERSION_MINOR > minor || /* Current minor version must be newer than requested -- or -- */ | 68 | (TOXES_VERSION_MINOR > minor || /* Current minor version must be newer than requested -- or -- */ |
69 | (TOXES_VERSION_MINOR == minor && TOXES_VERSION_PATCH >= patch) /* the patch must be the same or newer */ | 69 | (TOXES_VERSION_MINOR == minor && TOXES_VERSION_PATCH >= patch) /* the patch must be the same or newer */ |
70 | ) | 70 | ) |
71 | ); | 71 | ); |
72 | } | 72 | } |
73 | 73 | ||
74 | /* Clients should consider alerting their users that, unlike plain data, if even one bit | 74 | /* Clients should consider alerting their users that, unlike plain data, if even one bit |