]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gnulib/regcomp.c (regerror): Don't use abort on
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 22:22:57 +0000 (23:22 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 22:22:57 +0000 (23:22 +0100)
unexpected error.
(optimize_utf8): Likewise.
* grub-core/lib/posix_wrap/stdlib.h (abort): Removed.

ChangeLog
grub-core/gnulib/regcomp.c
grub-core/lib/posix_wrap/stdlib.h

index e5f9f068d45ac100aa0fcb8482cf6bd245565d09..943c433724e744675ecefc8689efb13246d73862 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
+       unexpected error.
+       (optimize_utf8): Likewise.
+       * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
+
 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/boot/i386/pc/lnxboot.S: Use
index 23f3afa0122906110c3ecaa07fa160d6844733bb..d153e3c2eb1264c3bddb5db5036a4b711080b310 100644 (file)
@@ -555,7 +555,7 @@ regerror (int errcode, const regex_t *_Restrict_ preg,
        to this routine.  If we are given anything else, or if other regex
        code generates an invalid error code, then the program has a bug.
        Dump core so we can fix it.  */
-    abort ();
+    msg = "unknown regexp error";
 
   msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
 
@@ -1119,7 +1119,7 @@ optimize_utf8 (re_dfa_t *dfa)
        }
        break;
       default:
-       abort ();
+       break;
       }
 
   if (mb_chars || has_period)
index 7cfc63a51dc47baaef420f980772b2be5c1f3fa5..31fe055a727c0d7b214f8592f758832f34dad3de 100644 (file)
@@ -46,10 +46,4 @@ realloc (void *ptr, grub_size_t size)
   return grub_realloc (ptr, size);
 }
 
-static inline void __attribute__ ((noreturn))
-abort (void)
-{
-  grub_abort ();
-}
-
 #endif