summaryrefslogtreecommitdiff
path: root/toxav
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-09 13:46:41 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-12 01:00:00 +0100
commit459f8f201393ac458445aebbd14c45bf4d6f5912 (patch)
tree67c7eb3c6338f701cdbd3fae808b45fa126fcd74 /toxav
parent8339e3449f41f5d6edd16a8657f7faa84040fdc3 (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 'toxav')
-rw-r--r--toxav/toxav.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c
index 814c4f26..1aece0b3 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -121,11 +121,11 @@ uint32_t toxav_version_patch(void)
121 121
122bool toxav_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch) 122bool toxav_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch)
123{ 123{
124 return (TOXAV_VERSION_MAJOR == major && /* Force the major version */ 124 return (TOXAV_VERSION_MAJOR == major && /* Force the major version */
125 (TOXAV_VERSION_MINOR > minor || /* Current minor version must be newer than requested -- or -- */ 125 (TOXAV_VERSION_MINOR > minor || /* Current minor version must be newer than requested -- or -- */
126 (TOXAV_VERSION_MINOR == minor && TOXAV_VERSION_PATCH >= patch) /* the patch must be the same or newer */ 126 (TOXAV_VERSION_MINOR == minor && TOXAV_VERSION_PATCH >= patch) /* the patch must be the same or newer */
127 ) 127 )
128 ); 128 );
129} 129}
130 130
131ToxAV *toxav_new(Tox *tox, TOXAV_ERR_NEW *error) 131ToxAV *toxav_new(Tox *tox, TOXAV_ERR_NEW *error)