2004-11-15 Jakub Jelinek <jakub@redhat.com>
* posix/bug-regex24.c: Include string.h.
* nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2
and out2 to out. Remove out label. Formatting.
2004-11-15 Ulrich Drepper <drepper@redhat.com>
* include/stdio.h: Do not mark __libc_message as noreturn.
* sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to
fool gcc. Include <stdbool.h>.
* sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc.
(__libc_message): Fix typo.
+2004-11-15 Jakub Jelinek <jakub@redhat.com>
+
+ * posix/bug-regex24.c: Include string.h.
+
+ * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2
+ and out2 to out. Remove out label. Formatting.
+
+2004-11-15 Ulrich Drepper <drepper@redhat.com>
+
+ * include/stdio.h: Do not mark __libc_message as noreturn.
+ * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to
+ fool gcc. Include <stdbool.h>.
+ * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc.
+ (__libc_message): Fix typo.
+
2004-11-13 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c (malloc_state): stat_lock_* elements need only
2004-11-13 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c (malloc_state): stat_lock_* elements need only
/* Print out MESSAGE on the error output and abort. */
extern void __libc_fatal (__const char *__message)
__attribute__ ((__noreturn__));
/* Print out MESSAGE on the error output and abort. */
extern void __libc_fatal (__const char *__message)
__attribute__ ((__noreturn__));
-extern void __libc_message (int do_abort, __const char *__fnt, ...)
- __attribute__ ((__noreturn__));
+extern void __libc_message (int do_abort, __const char *__fnt, ...);
/* Acquire ownership of STREAM. */
extern void __flockfile (FILE *__stream);
/* Acquire ownership of STREAM. */
extern void __flockfile (FILE *__stream);
if (dest == NULL)
{
if ((res = calloc (1, sizeof (nis_object))) == NULL)
if (dest == NULL)
{
if ((res = calloc (1, sizeof (nis_object))) == NULL)
}
else
res = dest;
xdrmem_create (&xdrs, addr, size, XDR_ENCODE);
}
else
res = dest;
xdrmem_create (&xdrs, addr, size, XDR_ENCODE);
- if (!_xdr_nis_object (&xdrs, (nis_object *)src))
- goto out3;
+ if (!_xdr_nis_object (&xdrs, (nis_object *) src))
+ goto out2;
xdr_destroy (&xdrs);
xdrmem_create (&xdrs, addr, size, XDR_DECODE);
if (!_xdr_nis_object (&xdrs, res))
{
xdr_destroy (&xdrs);
xdrmem_create (&xdrs, addr, size, XDR_DECODE);
if (!_xdr_nis_object (&xdrs, res))
{
if (dest == NULL)
free (res);
res = NULL;
}
if (dest == NULL)
free (res);
res = NULL;
}
#include <regex.h>
#include <stdio.h>
#include <regex.h>
#include <stdio.h>
- if (do_abort()
- /* Kill the application. */
- abort ();
+ if (do_abort)
+ /* Kill the application. */
+ abort ();
__libc_fatal (message)
const char *message;
{
__libc_fatal (message)
const char *message;
{
- __libc_message (1, "%s", message);
+ /* The loop is added only to keep gcc happy. */
+ while (1)
+ __libc_message (1, "%s", message);
}
libc_hidden_def (__libc_fatal)
}
libc_hidden_def (__libc_fatal)
#include <fcntl.h>
#include <paths.h>
#include <stdarg.h>
#include <fcntl.h>
#include <paths.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysdep.h>
#include <unistd.h>
#include <sys/syslog.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysdep.h>
#include <unistd.h>
#include <sys/syslog.h>
-#ifndef ABORT_INSTRUCTION
-/* No such instruction is available. */
-# define ABORT_INSTRUCTION
-#endif
/* Abort with an error message. */
#include <not-cancel.h>
/* Abort with an error message. */
#include <not-cancel.h>
__libc_fatal (message)
const char *message;
{
__libc_fatal (message)
const char *message;
{
- __libc_message (1, "%s", message);
+ /* The loop is added only to keep gcc happy. */
+ while (1)
+ __libc_message (1, "%s", message);
}
libc_hidden_def (__libc_fatal)
}
libc_hidden_def (__libc_fatal)