This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.20-266-gbe97091


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  be97091638d156a53009b4034c60b58eaf3efa24 (commit)
      from  8915eacef88eb25ac94e6bb37b473adb326e9d1b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=be97091638d156a53009b4034c60b58eaf3efa24

commit be97091638d156a53009b4034c60b58eaf3efa24
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Nov 27 03:24:18 2014 +0000

    Fix nss/tst-nss-test1.c format warning.
    
    Testing for 32-bit x86 shows up a warning "tst-nss-test1.c:25:3:
    warning: format '%ju' expects argument of type 'uintmax_t', but
    argument 2 has type 'int' [-Wformat=]".  The argument is a difference
    of two pointers, a signed quantity of type ptrdiff_t for which the
    right format is %td; this patch makes this test use that format.
    
    Tested for 32-bit x86.
    
    	* nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
    	difference, not %ju.

diff --git a/ChangeLog b/ChangeLog
index 44c9453..c9b49ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-27  Joseph Myers  <joseph@codesourcery.com>
+
+	* nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
+	difference, not %ju.
+
 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
 
 	* include/libc-internal.h (ignore_value): New macro.
diff --git a/nss/tst-nss-test1.c b/nss/tst-nss-test1.c
index 4e443d4..c5750e0 100644
--- a/nss/tst-nss-test1.c
+++ b/nss/tst-nss-test1.c
@@ -21,7 +21,7 @@ do_test (void)
     if (p->pw_uid != *np || strncmp (p->pw_name, "name", 4) != 0
 	|| atol (p->pw_name + 4) != *np)
       {
-	printf ("passwd entry %ju wrong (%s, %u)\n",
+	printf ("passwd entry %td wrong (%s, %u)\n",
 		np - pwdids, p->pw_name, p->pw_uid);
 	retval = 1;
 	break;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    5 +++++
 nss/tst-nss-test1.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]