mailing list of musl libc
 help / color / mirror / code / Atom feed
* Fix for fields in utmp
@ 2013-02-20 18:23 Chris Spiegel
  2013-02-20 18:49 ` Szabolcs Nagy
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Spiegel @ 2013-02-20 18:23 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

The utmp.h header defines a few macros to access __ut_exit in the utmpx
struct; however, the underscores were removed in utmpx, so the macros
now point to non-existent struct members.  Attached is a simple patch
which removes them.

Chris

[-- Attachment #2: no-private-utmp-names.diff --]
[-- Type: text/plain, Size: 348 bytes --]

diff --git a/include/utmp.h b/include/utmp.h
index b145a11..c24d0a8 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -19,9 +19,6 @@ struct lastlog {
 
 #define ut_time ut_tv.tv_sec
 #define ut_name ut_user
-#define ut_exit __ut_exit
-#define e_termination __e_termination
-#define e_exit __e_exit
 #define utmp utmpx
 #define utmpname(x) (-1)
 

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

end of thread, other threads:[~2013-04-12 11:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20 18:23 Fix for fields in utmp Chris Spiegel
2013-02-20 18:49 ` Szabolcs Nagy
2013-02-21  0:56   ` Rich Felker
2013-02-26  6:49     ` Rich Felker
2013-02-26  9:22       ` Szabolcs Nagy
2013-02-26 10:34         ` Ivan Kanakarakis
2013-02-26 20:21           ` Szabolcs Nagy
2013-02-26 23:33             ` Rich Felker
2013-03-02 23:29               ` Szabolcs Nagy
2013-03-04 22:06                 ` Rich Felker
2013-04-12 11:23                   ` Ivan Kanakarakis

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).