From: Ruben Kerkhof Date: Sat, 23 Jul 2016 12:50:17 +0000 (+0200) Subject: utils_threshold.c: fix indentation X-Git-Tag: collectd-5.6.0~196 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d183dca833410ca9c035f2d09ff11d4410d50e43;p=collectd.git utils_threshold.c: fix indentation --- diff --git a/src/daemon/utils_threshold.c b/src/daemon/utils_threshold.c index 4a8df89d..cb1ea34a 100644 --- a/src/daemon/utils_threshold.c +++ b/src/daemon/utils_threshold.c @@ -124,16 +124,16 @@ int ut_search_threshold (const value_list_t *vl, /* {{{ */ if (vl == NULL) return (EINVAL); - /* Is this lock really necessary? */ - pthread_mutex_lock (&threshold_lock); + /* Is this lock really necessary? */ + pthread_mutex_lock (&threshold_lock); t = threshold_search (vl); if (t == NULL) { - pthread_mutex_unlock (&threshold_lock); + pthread_mutex_unlock (&threshold_lock); return (ENOENT); - } + } memcpy (ret_threshold, t, sizeof (*ret_threshold)); - pthread_mutex_unlock (&threshold_lock); + pthread_mutex_unlock (&threshold_lock); ret_threshold->next = NULL;