summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-08-11 11:05:53 -0500
committerDavid Smith <dsmith@redhat.com>2008-08-11 11:05:53 -0500
commit32dad3b4df2a4b82898443cf45e5e894350308e2 (patch)
treec7ef6211d8840aae313b08ae888c3a8d181f4629 /tapsets.cxx
parenta238792343eba4fc3a752f8f44bd3ff99472ed33 (diff)
downloadsystemtap-steved-32dad3b4df2a4b82898443cf45e5e894350308e2.tar.gz
systemtap-steved-32dad3b4df2a4b82898443cf45e5e894350308e2.tar.xz
systemtap-steved-32dad3b4df2a4b82898443cf45e5e894350308e2.zip
Indentation fix.
2008-08-11 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_builder::build): Fixed indentation.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index c5679043..639af099 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -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,