]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/posix/libc_fatal.c (__libc_message): Add a const, a cast.
authorRoland McGrath <roland@gnu.org>
Thu, 29 Dec 2005 10:38:16 +0000 (10:38 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 29 Dec 2005 10:38:16 +0000 (10:38 +0000)
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Fix cast.
* hurd/report-wait.c (_S_msg_report_wait): Likewise.

* include/sys/xattr.h: New file.

ChangeLog
hurd/lookup-retry.c
hurd/report-wait.c
sysdeps/posix/libc_fatal.c

index d8c575ea5e5232e3d3c281fa39bfb5dcd9987938..afe77cc648017d2dd96f2b422d9ca62b9c12125a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-12-29  Roland McGrath  <roland@frob.com>
+
+       * sysdeps/posix/libc_fatal.c (__libc_message): Add a const, a cast.
+
+       * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Fix cast.
+       * hurd/report-wait.c (_S_msg_report_wait): Likewise.
+
+       * include/sys/xattr.h: New file.
+
 2005-12-28  Roland McGrath  <roland@redhat.com>
 
        * hurd/sigunwind.c: Include <stdint.h>.
index 1f53f911a78b6da0bfbd2ac6d2755d6315d3cc7b..0a886229f045736b210c84e45e35ccbfd981c2db 100644 (file)
@@ -1,5 +1,5 @@
 /* hairy bits of Hurd file name lookup
-   Copyright (C) 1992,1993,1994,1995,1996,1997,1999,2001,2002,2003
+   Copyright (C) 1992,1993,1994,1995,1996,1997,1999,2001,2002,2003,2005
        Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -247,7 +247,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
                  char *p;
                  /* XXX want client's host */
                  if (err = __host_info (__mach_host_self (), HOST_BASIC_INFO,
-                                        (natural_t *) &hostinfo,
+                                        (integer_t *) &hostinfo,
                                         &hostinfocnt))
                    return err;
                  if (hostinfocnt != HOST_BASIC_INFO_COUNT)
index da0ca3bdb27265bc5cdb39861a996d539f2c722e..296b2eec42b3c82cf0da49366a555f1da65c04ff 100644 (file)
@@ -140,7 +140,7 @@ _S_msg_report_wait (mach_port_t msgport, thread_t thread,
          error_t err;
 
          err = __thread_get_state (thread, MACHINE_THREAD_STATE_FLAVOR,
-                                   (integer_t *) &state, &count);
+                                   (natural_t *) &state, &count);
          if (err)
            return err;
          assert (count == MACHINE_THREAD_STATE_COUNT);
index 9dfac6800669008f459a8ff29f187288b2fd134f..c611b84363aaaee1be5536a38f327bd6265c3950 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1993,1994,1995,1997,2000,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1994,1995,1997,2000,2004,2005
+       Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -73,7 +74,7 @@ __libc_message (int do_abort, const char *fmt, ...)
   while (*cp != '\0')
     {
       /* Find the next "%s" or the end of the string.  */
-      char *next = cp;
+      const char *next = cp;
       while (next[0] != '%' || next[1] != 's')
        {
          next = __strchrnul (next + 1, '%');
@@ -114,7 +115,7 @@ __libc_message (int do_abort, const char *fmt, ...)
 
       for (int cnt = nlist - 1; cnt >= 0; --cnt)
        {
-         iov[cnt].iov_base = list->str;
+         iov[cnt].iov_base = (char *) list->str;
          iov[cnt].iov_len = list->len;
          total += list->len;
          list = list->next;