Code

write_http plugin: Replace tabs with spaces.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 27 Feb 2010 08:55:44 +0000 (09:55 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 27 Feb 2010 08:55:44 +0000 (09:55 +0100)
So the entire file is indented the same way.

src/write_http.c

index a7aafec888037589dd0218203e1677784553d50a..8c6a1b56ea3d0c57dfad0a6b7a7f5c4503325bcf 100644 (file)
@@ -278,7 +278,7 @@ static int wh_value_list_to_string (char *buffer, /* {{{ */
         size_t offset = 0;
         int status;
         int i;
-       gauge_t *rates = NULL;
+        gauge_t *rates = NULL;
 
         assert (0 == strcmp (ds->type, vl->type));
 
@@ -311,14 +311,14 @@ static int wh_value_list_to_string (char *buffer, /* {{{ */
         {
                 if (cb->store_rates != 0) 
                 {
-                       if (rates == NULL)
-                               rates = uc_get_rate (ds, vl);
-                       if (rates == NULL)
-                       {
-                               WARNING ("write_http plugin: "
-                                               "uc_get_rate failed.");
-                               return (-1);
-                       }
+                        if (rates == NULL)
+                                rates = uc_get_rate (ds, vl);
+                        if (rates == NULL)
+                        {
+                                WARNING ("write_http plugin: "
+                                                "uc_get_rate failed.");
+                                return (-1);
+                        }
                         BUFFER_ADD (":%lf", rates[i]);
                 }
                 else