diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-15 18:33:14 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-15 18:33:14 +0200 |
| commit | 46585e67644ad8edf16ff8db5602cea325a975e5 (patch) | |
| tree | 5739256404e8193abb219c42f6e291b21f947881 /lib/plugins/CCpp.cpp | |
| parent | 9d9a9dd41313ed5d2e544bb3bcdf08dab6f38a48 (diff) | |
| download | abrt-46585e67644ad8edf16ff8db5602cea325a975e5.tar.gz abrt-46585e67644ad8edf16ff8db5602cea325a975e5.tar.xz abrt-46585e67644ad8edf16ff8db5602cea325a975e5.zip | |
change dd_opendir API to return dd pointer (no need to dd_init it separately)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/plugins/CCpp.cpp')
| -rw-r--r-- | lib/plugins/CCpp.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/plugins/CCpp.cpp b/lib/plugins/CCpp.cpp index e5b50c34..642d97e9 100644 --- a/lib/plugins/CCpp.cpp +++ b/lib/plugins/CCpp.cpp @@ -276,8 +276,8 @@ string CAnalyzerCCpp::GetLocalUUID(const char *pDebugDumpDir) { string ret; - struct dump_dir *dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + struct dump_dir *dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) return ret; /* "" */ if (!dd_exist(dd, CD_UUID)) @@ -305,8 +305,8 @@ string CAnalyzerCCpp::GetLocalUUID(const char *pDebugDumpDir) /* parent */ waitpid(pid, NULL, 0); - dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) return ret; /* "" */ } @@ -319,8 +319,8 @@ string CAnalyzerCCpp::GetLocalUUID(const char *pDebugDumpDir) string CAnalyzerCCpp::GetGlobalUUID(const char *pDebugDumpDir) { - struct dump_dir *dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + struct dump_dir *dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) return string(""); if (dd_exist(dd, FILENAME_DUPHASH)) @@ -491,8 +491,8 @@ void CAnalyzerCCpp::CreateReport(const char *pDebugDumpDir, int force) return; } - struct dump_dir *dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + struct dump_dir *dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) return; if (!force) @@ -535,8 +535,8 @@ void CAnalyzerCCpp::CreateReport(const char *pDebugDumpDir, int force) /* Create and store backtrace and its hash. */ gen_backtrace(pDebugDumpDir, m_sDebugInfoDirs.c_str(), m_nGdbTimeoutSec); - dd = dd_init(); - if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR)) + dd = dd_opendir(pDebugDumpDir, /*flags:*/ 0); + if (!dd) { free(build_ids); return; |
