From: Chris Spiegel <cspiegel@gmail.com>
To: musl@lists.openwall.com
Subject: Fix for fields in utmp
Date: Wed, 20 Feb 2013 10:23:09 -0800 [thread overview]
Message-ID: <5125148D.8080205@gmail.com> (raw)
[-- 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)
next reply other threads:[~2013-02-20 18:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-20 18:23 Chris Spiegel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5125148D.8080205@gmail.com \
--to=cspiegel@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).