From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76214 invoked by alias); 10 Apr 2015 10:19:14 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 76177 invoked by uid 48); 10 Apr 2015 10:19:10 -0000 From: "nszabolcs at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/18235] New: utmpx struct's ut_tv member has wrong type on x86_64 linux Date: Fri, 10 Apr 2015 10:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nszabolcs at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00048.txt.bz2 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 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.