aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-04-25 15:26:57 +0000
committerWerner Koch <[email protected]>2016-04-25 15:26:57 +0000
commit8776abbe02935e720018f3ef6ffd48f21435ff8b (patch)
tree6a848deb9fd8199520300824752816cec32365d8 /common/util.h
parentcommon: Drop unused variables, fix warnings. (diff)
downloadgnupg-8776abbe02935e720018f3ef6ffd48f21435ff8b.tar.gz
gnupg-8776abbe02935e720018f3ef6ffd48f21435ff8b.zip
common: Use new function to print a failure of xtrymalloc.
* common/miscellaneous.c (xoutofcore): New. * common/strlist.c (append_to_strlist): Use instead of abort. (append_to_strlist_try): Use xtrymalloc instead of xmalloc. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 466c519bd..84a15ab74 100644
--- a/common/util.h
+++ b/common/util.h
@@ -263,6 +263,9 @@ const char *gnupg_messages_locale_name (void);
logging subsystem. */
void setup_libgcrypt_logging (void);
+/* Print an out of core emssage and die. */
+void xoutofcore (void);
+
/* Same as estream_asprintf but die on memory failure. */
char *xasprintf (const char *fmt, ...) GPGRT_ATTR_PRINTF(1,2);
/* This is now an alias to estream_asprintf. */