public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1921] New: casting problem in elf/cache.c
@ 2005-11-24 14:44 heiko dot nardmann at secunet dot com
  2005-11-24 14:47 ` [Bug libc/1921] " jakub at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: heiko dot nardmann at secunet dot com @ 2005-11-24 14:44 UTC (permalink / raw)
  To: glibc-bugs

In file elf/cache.c there is a casting which my lint tool complains about:  
  
186	  cache_new = (struct cache_file_new *) ((void *)cache + offset);  
  
Casting to (void *) and adding an offset is not really clear. Shouldn't it be  
better a cast to (char *) ?

-- 
           Summary: casting problem in elf/cache.c
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: heiko dot nardmann at secunet dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=1921

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/1921] casting problem in elf/cache.c
  2005-11-24 14:44 [Bug libc/1921] New: casting problem in elf/cache.c heiko dot nardmann at secunet dot com
@ 2005-11-24 14:47 ` jakub at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at redhat dot com @ 2005-11-24 14:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2005-11-24 14:47 -------
glibc requires GCC and uses many GCC extensions.  void * arithmetic is one of
them.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=1921

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2005-11-24 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-24 14:44 [Bug libc/1921] New: casting problem in elf/cache.c heiko dot nardmann at secunet dot com
2005-11-24 14:47 ` [Bug libc/1921] " jakub at redhat dot com

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).