Mon, 16 Sep 2019 20:47:19 -0400
Fix misleading indentation warnings.
--- a/libpurple/protocols/zephyr/ZGetLocs.c Mon Sep 16 20:41:06 2019 -0400 +++ b/libpurple/protocols/zephyr/ZGetLocs.c Mon Sep 16 20:47:19 2019 -0400 @@ -15,22 +15,25 @@ Code_t ZGetLocations(ZLocations_t *location, int *numlocs) { - int i; + int i; - if (!__locate_list) - return (ZERR_NOLOCATIONS); + if (!__locate_list) { + return (ZERR_NOLOCATIONS); + } - if (__locate_next == __locate_num) - return (ZERR_NOMORELOCS); + if (__locate_next == __locate_num) { + return (ZERR_NOMORELOCS); + } for (i = 0; i < MIN(*numlocs, __locate_num - __locate_next); i++) { location[i] = __locate_list[i + __locate_next]; } - if (__locate_num-__locate_next < *numlocs) - *numlocs = __locate_num-__locate_next; + if (__locate_num - __locate_next < *numlocs) { + *numlocs = __locate_num - __locate_next; + } - __locate_next += *numlocs; + __locate_next += *numlocs; - return (ZERR_NONE); + return ZERR_NONE; }
--- a/libpurple/protocols/zephyr/ZGetSubs.c Mon Sep 16 20:41:06 2019 -0400 +++ b/libpurple/protocols/zephyr/ZGetSubs.c Mon Sep 16 20:47:19 2019 -0400 @@ -15,23 +15,26 @@ Code_t ZGetSubscriptions(ZSubscription_t *subscription, int *numsubs) { - int i; + int i; - if (!__subscriptions_list) - return (ZERR_NOSUBSCRIPTIONS); + if (!__subscriptions_list) { + return (ZERR_NOSUBSCRIPTIONS); + } - if (__subscriptions_next == __subscriptions_num) - return (ZERR_NOMORESUBSCRIPTIONS); + if (__subscriptions_next == __subscriptions_num) { + return (ZERR_NOMORESUBSCRIPTIONS); + } for (i = 0; i < MIN(*numsubs, __subscriptions_num - __subscriptions_next); i++) { subscription[i] = __subscriptions_list[i + __subscriptions_next]; } - if (__subscriptions_num-__subscriptions_next < *numsubs) - *numsubs = __subscriptions_num-__subscriptions_next; + if (__subscriptions_num - __subscriptions_next < *numsubs) { + *numsubs = __subscriptions_num - __subscriptions_next; + } - __subscriptions_next += *numsubs; + __subscriptions_next += *numsubs; - return (ZERR_NONE); + return ZERR_NONE; }
--- a/libpurple/protocols/zephyr/ZVariables.c Mon Sep 16 20:41:06 2019 -0400 +++ b/libpurple/protocols/zephyr/ZVariables.c Mon Sep 16 20:47:19 2019 -0400 @@ -193,24 +193,30 @@ { register const gchar *cp; - if (!bfr[0] || bfr[0] == '#') /* comment or null line */ - return (0); + if (!bfr[0] || bfr[0] == '#') { + /* comment or null line */ + return (0); + } - cp = bfr; - while (*cp && !isspace(*cp) && (*cp != '=')) - cp++; + cp = bfr; + while (*cp && !isspace(*cp) && (*cp != '=')) { + cp++; + } if (g_ascii_strncasecmp(bfr, var, MAX(strlen(var), (gsize)(cp - bfr)))) { /* var is not the var in bfr ==> no match */ return 0; } - cp = strchr(bfr, '='); - if (!cp) - return(0); - cp++; - while (*cp && isspace(*cp)) /* space up to variable value */ + cp = strchr(bfr, '='); + if (!cp) { + return (0); + } cp++; + while (*cp && isspace(*cp)) { + /* space up to variable value */ + cp++; + } - return (cp - bfr); /* return index */ + return (cp - bfr); /* return index */ }