diff options
author | Ran Benita <ran234@gmail.com> | 2012-07-20 17:20:35 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-07-23 00:45:34 +0300 |
commit | 71c2f2e0e2dce7e3ada36ee7399421eb18a2e302 (patch) | |
tree | e1b53e57b23e99b6fa6254c845fd30f5f089beb7 /src/utils.c | |
parent | 58f8d2c151d95bb920d346dcae3e6c429789f257 (diff) | |
download | xorg-lib-libxkbcommon-71c2f2e0e2dce7e3ada36ee7399421eb18a2e302.tar.gz |
utils: replace FATAL by malloc_or_die
"Out of memory" is enough in this case. If we want to be OOM-safe this
makes it clear where to begin.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/utils.c b/src/utils.c index 84dce22..d1f79bb 100644 --- a/src/utils.c +++ b/src/utils.c @@ -134,31 +134,6 @@ uError(const char *s, ...) /***====================================================================***/ void -uFatalError(const char *s, ...) -{ - va_list args; - - if (!errorFile) - errorFile = stderr; - - if ((outCount == 0) && (preMsg != NULL)) - fprintf(errorFile, "%s\n", preMsg); - if (prefix != NULL) - fprintf(errorFile, "%s", prefix); - fprintf(errorFile, "Fatal Error: "); - va_start(args, s); - vfprintf(errorFile, s, args); - va_end(args); - fprintf(errorFile, " Exiting\n"); - fflush(errorFile); - outCount++; - exit(1); - /* NOTREACHED */ -} - -/***====================================================================***/ - -void uInternalError(const char *s, ...) { va_list args; |