diff options
author | Daniel Novotny <dnovotny@dhcp-0-118.brq.redhat.com> | 2009-08-25 15:40:26 +0200 |
---|---|---|
committer | Daniel Novotny <dnovotny@dhcp-0-118.brq.redhat.com> | 2009-08-25 15:40:26 +0200 |
commit | f495fd571cc063c2e0980e14b0cac604a5c71b32 (patch) | |
tree | a7c2ba4a1fce039b5333258ffd72f49d3eeae6a3 /lib | |
parent | e4185013d1309b80633d17b84837913ac8705438 (diff) | |
parent | facd7083bc1c5f097b7d6795780670644ccfbb1f (diff) | |
download | abrt-f495fd571cc063c2e0980e14b0cac604a5c71b32.tar.gz abrt-f495fd571cc063c2e0980e14b0cac604a5c71b32.tar.xz abrt-f495fd571cc063c2e0980e14b0cac604a5c71b32.zip |
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CommLayer/Observer.h | 4 | ||||
-rw-r--r-- | lib/Plugins/Mailx.cpp | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/CommLayer/Observer.h b/lib/CommLayer/Observer.h index 755ae524..1fb820a2 100644 --- a/lib/CommLayer/Observer.h +++ b/lib/CommLayer/Observer.h @@ -12,8 +12,8 @@ class CObserver { //CObserver(); virtual ~CObserver() {} virtual void Status(const std::string& pMessage, const std::string& pDest="0") = 0; - virtual void Debug(const std::string& pMessage, const std::string& pDest="0") = 0; - virtual void Warning(const std::string& pMessage, const std::string& pDest="0") = 0; + virtual void Debug(const std::string& pMessage) = 0; + virtual void Warning(const std::string& pMessage) = 0; /* this should be implemented in daemon */ virtual vector_crash_infos_t GetCrashInfos(const std::string &pSender) = 0; virtual uint64_t CreateReport_t(const std::string &pUUID,const std::string &pUID, const std::string &pSender) diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index 9ba6a630..977499ec 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -64,11 +64,9 @@ void CMailx::AddMailxArg(const std::string& pArg) } } - void CMailx::ExecMailx(uid_t uid, const std::string& pText) { int pipein[2]; - char buff[1024]; pid_t child; struct passwd* pw = getpwuid(uid); @@ -107,7 +105,6 @@ void CMailx::ExecMailx(uid_t uid, const std::string& pText) wait(NULL); /* why? */ } - void CMailx::SendEmail(const std::string& pSubject, const std::string& pText, const std::string& pUID) { comm_layer_inner_status("Sending an email..."); @@ -120,10 +117,8 @@ void CMailx::SendEmail(const std::string& pSubject, const std::string& pText, co AddMailxArg(""); ExecMailx(atoi(pUID.c_str()), pText); - } - std::string CMailx::Report(const map_crash_report_t& pCrashReport, const std::string& pArgs) { comm_layer_inner_status("Creating a report..."); |