Reflect the renamings.
[gnulib.git] / lib / error.c
index 16228c4..1149235 100644 (file)
@@ -90,9 +90,9 @@ extern void __error_at_line (int status, int errnum, const char *file_name,
 char *strerror_r ();
 # endif
 
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
+# ifndef SIZE_MAX
+#  define SIZE_MAX ((size_t) -1)
+# endif
 
 /* The calling program should define program_name and set it to the
    name of the executing program.  */
@@ -148,7 +148,7 @@ error_tail (int status, int errnum, const char *message, va_list args)
       size_t len = strlen (message) + 1;
       const wchar_t *wmessage = L"out of memory";
       wchar_t *wbuf = (len < ALLOCA_LIMIT
-                      ? (void *) alloca (len * sizeof *wbuf)
+                      ? alloca (len * sizeof *wbuf)
                       : len <= SIZE_MAX / sizeof *wbuf
                       ? malloc (len * sizeof *wbuf)
                       : NULL);