public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18235] New: utmpx struct's ut_tv member has wrong type on x86_64 linux
@ 2015-04-10 10:19 nszabolcs at gmail dot com
  2015-04-20  8:56 ` [Bug libc/18235] " fweimer at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: nszabolcs at gmail dot com @ 2015-04-10 10:19 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18235

            Bug ID: 18235
           Summary: utmpx struct's ut_tv member has wrong type on x86_64
                    linux
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com

ut_tv member is required to have type struct timeval

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html

the following code fails on x86_64 linux:

#define _XOPEN_SOURCE 700
#include <utmpx.h>
void f()
{
struct utmpx x;
struct timeval *p = &x.ut_tv; // warning: initialization from incompatible
pointer type [enabled by default]
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-04-20  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 10:19 [Bug libc/18235] New: utmpx struct's ut_tv member has wrong type on x86_64 linux nszabolcs at gmail dot com
2015-04-20  8:56 ` [Bug libc/18235] " fweimer 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).