summaryrefslogtreecommitdiffstats
path: root/lib/Utils/logging.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-01 19:17:58 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-01 19:17:58 +0200
commit372fec94c50fae821f4e413abd88f84822a2e185 (patch)
tree3d027a9609bca8aa2f51601305726498d6e8cb01 /lib/Utils/logging.cpp
parent9f3bf020d1772886ef1545c8b1f77f9d44c1533a (diff)
downloadabrt-372fec94c50fae821f4e413abd88f84822a2e185.tar.gz
abrt-372fec94c50fae821f4e413abd88f84822a2e185.tar.xz
abrt-372fec94c50fae821f4e413abd88f84822a2e185.zip
move die_out_of_memory() to abrtlib
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/logging.cpp')
-rw-r--r--lib/Utils/logging.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp
index 58d14ee..d79ded5 100644
--- a/lib/Utils/logging.cpp
+++ b/lib/Utils/logging.cpp
@@ -117,3 +117,8 @@ void simple_perror_msg(const char *s)
{
perror_msg("%s", s);
}
+
+void die_out_of_memory(void)
+{
+ error_msg_and_die("Out of memory, exiting");
+}