summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-11 19:29:30 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-11 19:29:30 +0200
commit6c09581696b33bd6f8b96fdb61b4971369f21220 (patch)
tree1c94ec0e20c0e2b9610963c9f8f065d8485bc088
parent652a6d802bb35d84ed4cf7d603ab57e7a8c63863 (diff)
downloadabrt-6c09581696b33bd6f8b96fdb61b4971369f21220.tar.gz
abrt-6c09581696b33bd6f8b96fdb61b4971369f21220.tar.xz
abrt-6c09581696b33bd6f8b96fdb61b4971369f21220.zip
preparatory patch with trivial changes only
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--lib/plugins/Logger.cpp2
-rw-r--r--lib/plugins/Mailx.cpp2
-rw-r--r--src/daemon/abrt-action-bugzilla.cpp10
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/plugins/Logger.cpp b/lib/plugins/Logger.cpp
index 6a02e713..e3ba9660 100644
--- a/lib/plugins/Logger.cpp
+++ b/lib/plugins/Logger.cpp
@@ -66,7 +66,7 @@ std::string CLogger::Report(const map_crash_data_t& pCrashData,
throw CABRTException(EXCEP_PLUGIN, "Can't open '%s'", fname);
update_client(_("Writing report to '%s'"), fname);
- full_write(fd, full_dsc, strlen(full_dsc));
+ full_write_str(fd, full_dsc);
free(full_dsc);
close(fd);
diff --git a/lib/plugins/Mailx.cpp b/lib/plugins/Mailx.cpp
index 2bb125bf..255c873d 100644
--- a/lib/plugins/Mailx.cpp
+++ b/lib/plugins/Mailx.cpp
@@ -52,7 +52,7 @@ static void exec_and_feed_input(uid_t uid, const char* text, char **args)
/*dir:*/ NULL,
uid);
- full_write(pipein[1], text, strlen(text));
+ full_write_str(pipein[1], text);
close(pipein[1]);
waitpid(child, NULL, 0); /* wait for command completion */
diff --git a/src/daemon/abrt-action-bugzilla.cpp b/src/daemon/abrt-action-bugzilla.cpp
index 6b6591ee..229de759 100644
--- a/src/daemon/abrt-action-bugzilla.cpp
+++ b/src/daemon/abrt-action-bugzilla.cpp
@@ -43,7 +43,7 @@ struct bug_info {
const char* bug_reporter;
const char* bug_product;
xmlrpc_int32 bug_dup_id;
- std::vector<const char*> bug_cc;
+ std::vector<char*> bug_cc;
};
static void bug_info_init(struct bug_info* bz)
@@ -64,8 +64,8 @@ static void bug_info_destroy(struct bug_info* bz)
if (!bz->bug_cc.empty())
{
- for (int ii = 0; ii < bz->bug_cc.size(); ii++)
- free((void*)bz->bug_cc[ii]);
+ for (unsigned ii = 0; ii < bz->bug_cc.size(); ii++)
+ free(bz->bug_cc[ii]);
bz->bug_cc.clear();
}
@@ -310,11 +310,11 @@ void ctx::get_bug_cc(xmlrpc_value* result_xml, struct bug_info* bz)
if (*cc != '\0')
{
- bz->bug_cc.push_back(cc);
+ bz->bug_cc.push_back((char*)cc);
VERB3 log("member on cc is %s", cc);
continue;
}
- free((void*)cc);
+ free((char*)cc);
}
}
xmlrpc_DECREF(cc_member);