summaryrefslogtreecommitdiffstats
path: root/hash.cxx
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-09-03 09:44:45 +1000
committerddomingo <ddomingo@redhat.com>2008-09-03 09:44:45 +1000
commit404939a6c4f982062116f05aa22f7dff0b0ce24e (patch)
tree53015ff483f6ed2d1e9cdabc9289358ade12a0e3 /hash.cxx
parentaac23edfa124a016581871770af84d10efc38239 (diff)
parentf02dd36464a34542d5f853d8643cc473af59c5b2 (diff)
downloadsystemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.gz
systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.tar.xz
systemtap-steved-404939a6c4f982062116f05aa22f7dff0b0ce24e.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'hash.cxx')
-rw-r--r--hash.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/hash.cxx b/hash.cxx
index ef02c8f1..45039391 100644
--- a/hash.cxx
+++ b/hash.cxx
@@ -126,16 +126,14 @@ find_hash (systemtap_session& s, const string& script)
h.add(s.runtime_path);
// Hash compiler path, size, and mtime. We're just going to assume
- // we'll be using gcc, which should be correct most of the time.
- string gcc_path;
- if (find_executable("gcc", gcc_path))
+ // we'll be using gcc. XXX: getting kbuild to spit out out would be
+ // better.
+ string gcc_path = find_executable ("gcc");
+ if (stat(gcc_path.c_str(), &st) == 0)
{
- if (stat(gcc_path.c_str(), &st) == 0)
- {
- h.add(gcc_path);
- h.add(st.st_size);
- h.add(st.st_mtime);
- }
+ h.add(gcc_path);
+ h.add(st.st_size);
+ h.add(st.st_mtime);
}
// Hash the systemtap size and mtime. We could use VERSION/DATE,