]> sourceware.org Git - systemtap.git/commitdiff
Indentation fix.
authorDavid Smith <dsmith@redhat.com>
Mon, 11 Aug 2008 16:05:53 +0000 (11:05 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 11 Aug 2008 16:05:53 +0000 (11:05 -0500)
2008-08-11  David Smith  <dsmith@redhat.com>

* tapsets.cxx (utrace_builder::build): Fixed indentation.

ChangeLog
tapsets.cxx

index d167e3ac44ed4ebc500876820d335854893d8215..9b1ede20d5f0309f5d23c2257f0a58583278d327 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-11  David Smith  <dsmith@redhat.com>
+
+       * tapsets.cxx (utrace_builder::build): Fixed indentation.
+
 2008-08-11  Mark Wielaard  <mwielaard@redhat.com>
 
        * Makefile.am (install-data-local): Use INSTALL_PROGRAM for executable
index c56790434ff3e295e508efd68aadbb5d2004f042..639af09916534afc1c73c60c7ae18070b236abdf 100644 (file)
@@ -5905,7 +5905,7 @@ struct utrace_builder: public derived_probe_builder
 
     // If we have a path, we need to validate it.
     if (has_path)
-    {
+      {
        string::size_type start_pos, end_pos;
        string component;
 
@@ -5914,33 +5914,33 @@ struct utrace_builder: public derived_probe_builder
 
        // Make sure it starts with '/'.
        if (path[0] != '/')
-           throw semantic_error ("process path must start with a '/'",
-                                 location->tok);
+         throw semantic_error ("process path must start with a '/'",
+                               location->tok);
 
        start_pos = 1;                  // get past the initial '/'
        while ((end_pos = path.find('/', start_pos)) != string::npos)
-        {
+          {
            component = path.substr(start_pos, end_pos - start_pos);
            // Make sure it isn't empty.
            if (component.size() == 0)
-               throw semantic_error ("process path component cannot be empty",
-                                     location->tok);
+             throw semantic_error ("process path component cannot be empty",
+                                   location->tok);
            // Make sure it isn't relative.
            else if (component == "." || component == "..")
-               throw semantic_error ("process path cannot be relative (and contain '.' or '..')", location->tok);
+             throw semantic_error ("process path cannot be relative (and contain '.' or '..')", location->tok);
 
            start_pos = end_pos + 1;
-       }
+         }
        component = path.substr(start_pos);
        // Make sure it doesn't end with '/'.
        if (component.size() == 0)
-           throw semantic_error ("process path cannot end with a '/'", location->tok);
+         throw semantic_error ("process path cannot end with a '/'", location->tok);
        // Make sure it isn't relative.
        else if (component == "." || component == "..")
-           throw semantic_error ("process path cannot be relative (and contain '.' or '..')", location->tok);
+         throw semantic_error ("process path cannot be relative (and contain '.' or '..')", location->tok);
 
-      sess.unwindsym_modules.insert (path);
-    }
+       sess.unwindsym_modules.insert (path);
+      }
 
     finished_results.push_back(new utrace_derived_probe(sess, base, location,
                                                         has_path, path, pid,
This page took 0.045874 seconds and 5 git commands to generate.