public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Tiny warning patch
@ 2003-08-26 21:34 Jakub Jelinek
  2003-08-27  4:03 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2003-08-26 21:34 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

2003-08-26  Jakub Jelinek  <jakub@redhat.com>

	* login/programs/utmpdump.c (print_entry): Cast tv_usec to long
	to match format string.
	* sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
	__old_buf.
	(__new_semctl): Shut up warning.
	* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
	(_dl_string_hwcap): Add __attribute__ ((always_inline)).

--- libc/login/programs/utmpdump.c.jj	2002-10-02 16:39:36.000000000 -0400
+++ libc/login/programs/utmpdump.c	2003-08-26 17:23:10.000000000 -0400
@@ -1,5 +1,5 @@
 /* utmpdump - dump utmp-like files.
-   Copyright (C) 1997, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
 
@@ -74,7 +74,7 @@ print_entry (struct utmp *up)
 #endif
 #if _HAVE_UT_TV
 	    , 4 + ctime (&temp_tv.tv_sec)
-	    , temp_tv.tv_usec
+	    , (long) temp_tv.tv_usec
 #else
 	    , 4 + ctime (&up->ut_time)
 #endif
--- libc/sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c.jj	2002-04-26 16:34:41.000000000 -0400
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c	2003-08-26 17:19:59.000000000 -0400
@@ -1,5 +1,5 @@
 /* Semctl for architectures where word sized unions are passed indirectly
-   Copyright (C) 1995, 1997, 1998, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1995,1997,1998,2000,2002,2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
@@ -49,6 +49,7 @@ union semun
   struct semid_ds *buf;		/* buffer for IPC_STAT & IPC_SET */
   unsigned short int *array;	/* array for GETALL & SETALL */
   struct seminfo *__buf;	/* buffer for IPC_INFO */
+  struct __old_semid_ds *__old_buf;
 };
 
 #include <bp-checks.h>
@@ -168,7 +169,7 @@ __new_semctl (int semid, int semnum, int
 #endif
 
     buf = arg.buf;
-    arg.buf = (struct semid_ds *)&old;
+    arg.__old_buf = &old;
     if (cmd == IPC_SET)
       {
 	old.sem_perm.uid = buf->sem_perm.uid;
--- libc/sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h.jj	2002-02-01 14:05:31.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h	2003-08-26 17:24:37.000000000 -0400
@@ -1,5 +1,5 @@
 /* Linux/sparc32 version of processor capability information handling macros.
-   Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>, 1999.
 
@@ -50,7 +50,7 @@ _dl_hwcap_string (int idx)
 };
 
 static inline int
-__attribute__ ((unused))
+__attribute__ ((unused, always_inline))
 _dl_string_hwcap (const char *str)
 {
   int i;

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Tiny warning patch
  2003-08-26 21:34 [PATCH] Tiny warning patch Jakub Jelinek
@ 2003-08-27  4:03 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-08-27  4:03 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* login/programs/utmpdump.c (print_entry): Cast tv_usec to long
> 	to match format string.
> 	* sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
> 	__old_buf.
> 	(__new_semctl): Shut up warning.
> 	* sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
> 	(_dl_string_hwcap): Add __attribute__ ((always_inline)).

Applied, with one tiny change.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/TC192ijCOnn/RHQRAsJXAKC49kbkUAeG5qSfJgOMcpmlc36xegCfREui
mI4SxgNFixkz94dVKjc69Bw=
=v6Uj
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-27  4:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-26 21:34 [PATCH] Tiny warning patch Jakub Jelinek
2003-08-27  4:03 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).