[hipl-commit] [trunk] Rev 4235: cosmetics: Disable code with the preprocessor, not with comments; reformatting.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 12 Apr 2010 18:38:40 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 12/04/2010 at 18:38:40
Revision: 4235
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  cosmetics: Disable code with the preprocessor, not with comments; 
reformatting.

Modified:
  M  agent/tools.c

=== modified file 'agent/tools.c'
--- agent/tools.c       2010-04-07 14:16:00 +0000
+++ agent/tools.c       2010-04-12 15:38:02 +0000
@@ -158,16 +158,22 @@
         if (err != 3) {
             goto loop_end;
         }
-/*      p1 = strtok(buf, "+=");
- *      if (p1 == NULL) goto loop_end;
- *          p2 = strtok(NULL, "\0");
- *          if (p2 == NULL) goto loop_end;*/
-
+#if 0
+        p1 = strtok(buf, "+=");
+        if (p1 == NULL) {
+            goto loop_end;
+        }
+        p2 = strtok(NULL, "\0");
+        if (p2 == NULL) {
+            goto loop_end;
+        }
+#endif
         /* Set values. */
         p3 = strdup(str_var_get(p1));
         if (add == '+' && strlen(p3) > 0) {
             str_var_set(p1, "%s\n%s", p3, p2);
-        } else {              str_var_set(p1, p2);
+        } else {
+            str_var_set(p1, p2);
         }
         free(p3);
         HIP_DEBUG("config string read: %s%c%s\n", p1, add, p2);

Other related posts:

  • » [hipl-commit] [trunk] Rev 4235: cosmetics: Disable code with the preprocessor, not with comments; reformatting. - Diego Biurrun