This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18235] New: utmpx struct's ut_tv member has wrong type on x86_64 linux
- From: "nszabolcs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 10 Apr 2015 10:19:09 +0000
- Subject: [Bug libc/18235] New: utmpx struct's ut_tv member has wrong type on x86_64 linux
- Auto-submitted: auto-generated
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.