From 32dad3b4df2a4b82898443cf45e5e894350308e2 Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 11 Aug 2008 11:05:53 -0500 Subject: [PATCH] Indentation fix. 2008-08-11 David Smith * tapsets.cxx (utrace_builder::build): Fixed indentation. --- ChangeLog | 4 ++++ tapsets.cxx | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index d167e3ac4..9b1ede20d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-08-11 David Smith + + * tapsets.cxx (utrace_builder::build): Fixed indentation. + 2008-08-11 Mark Wielaard * Makefile.am (install-data-local): Use INSTALL_PROGRAM for executable diff --git a/tapsets.cxx b/tapsets.cxx index c56790434..639af0991 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, -- 2.43.5