]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* posix/fnmatch_loop.c: Add casts for signedness.
authorRoland McGrath <roland@gnu.org>
Sun, 16 Mar 2003 03:22:41 +0000 (03:22 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 16 Mar 2003 03:22:41 +0000 (03:22 +0000)
* nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
* gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
* nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.

ChangeLog
gmon/gmon.c
nptl/sysdeps/pthread/configure [new file with mode: 0755]
nptl/sysdeps/pthread/configure.in [new file with mode: 0644]
nscd/nscd_getgr_r.c
nscd/nscd_getpw_r.c
posix/fnmatch_loop.c

index 28c154ba23b6a745542089f11b46dd5d137f685f..6ccc24791379d9f213c8f235e8ce1b827616e324 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2003-03-15  Roland McGrath  <roland@redhat.com>
 
+       * posix/fnmatch_loop.c: Add casts for signedness.
+       * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
+       * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
+       * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
+
        * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
        get errors into the log file.
        (libc_cv_broken_visibility_attribute): Likewise.
index 889f9ac6a75489ea08667e1a64b49ee1c171249d..9f8dda1cec0885b2d6aa037a173e039cb4b83da7 100644 (file)
@@ -213,7 +213,7 @@ write_call_graph (fd)
   struct gmon_cg_arc_record raw_arc[NARCS_PER_WRITEV]
     __attribute__ ((aligned (__alignof__ (char*))));
   ARCINDEX from_index, to_index;
-  int from_len;
+  u_long from_len;
   u_long frompc;
   struct iovec iov[2 * NARCS_PER_WRITEV];
   int nfilled;
diff --git a/nptl/sysdeps/pthread/configure b/nptl/sysdeps/pthread/configure
new file mode 100755 (executable)
index 0000000..8999d37
--- /dev/null
@@ -0,0 +1,7 @@
+# This file is generated from configure.in by Autoconf.  DO NOT EDIT!
+
+if test "x$libc_cv_gcc___thread" != xyes; then
+  { { echo "$as_me:$LINENO: error: compiler support for __thread is required" >&5
+echo "$as_me: error: compiler support for __thread is required" >&2;}
+   { (exit 1); exit 1; }; }
+fi
diff --git a/nptl/sysdeps/pthread/configure.in b/nptl/sysdeps/pthread/configure.in
new file mode 100644 (file)
index 0000000..8350f86
--- /dev/null
@@ -0,0 +1,6 @@
+dnl configure fragment for new libpthread implementation.
+GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
+
+if test "x$libc_cv_gcc___thread" != xyes; then
+  AC_MSG_ERROR(compiler support for __thread is required)
+fi
index 2d09ed92f245038c97a1f923d730da78a0914ff3..1769ff1c6ea317e64f65db84f1e07f6873b00cf5 100644 (file)
@@ -143,7 +143,7 @@ nscd_getgr_r (const char *key, size_t keylen, request_type type,
       char *p = buffer;
       size_t total_len;
       uintptr_t align;
-      size_t cnt;
+      nscd_ssize_t cnt;
 
       /* Now allocate the buffer the array for the group members.  We must
         align the pointer.  */
index 160e9ffa27b3ca6f9d78afae7544a87c1db23539..7e7ed619c822e94c0a605394d61336d93f6c0078 100644 (file)
@@ -173,7 +173,7 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type,
 
       __close (sock);
 
-      return nbytes == total ? 0 : -1;
+      return nbytes == (ssize_t) total ? 0 : -1;
     }
   else
     {
index 8bdd9a6063c2356705b5990ed20efefa3c39c0cc..8c0b06b30e95c657c94008574faf01b4f3a0210b 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991-1993, 1996-2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2003
+       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
@@ -539,11 +540,13 @@ FCT (pattern, string, string_end, no_leading_period, flags)
                                if (! is_range)
                                  {
 # ifdef WIDE_CHAR_VERSION
-                                   for (c1 = 0; c1 < wextra[idx]; ++c1)
+                                   for (c1 = 0;
+                                        (int32_t) c1 < wextra[idx];
+                                        ++c1)
                                      if (n[c1] != wextra[1 + c1])
                                        break;
 
-                                   if (c1 == wextra[idx])
+                                   if ((int32_t) c1 == wextra[idx])
                                      goto matched;
 # else
                                    for (c1 = 0; c1 < extra[idx]; ++c1)
@@ -932,7 +935,7 @@ FCT (pattern, string, string_end, no_leading_period, flags)
        case L('/'):
          if (NO_LEADING_PERIOD (flags))
            {
-             if (n == string_end || c != *n)
+             if (n == string_end || c != (UCHAR) *n)
                return FNM_NOMATCH;
 
              new_no_leading_period = 1;