svn commit: r202099 - in user/ed/utmpx: include lib/libc/gen
Ed Schouten
ed at FreeBSD.org
Mon Jan 11 18:39:11 UTC 2010
Author: ed
Date: Mon Jan 11 18:39:11 2010
New Revision: 202099
URL: http://svn.freebsd.org/changeset/base/202099
Log:
Reduce ut_line to 16.
After some thinking I realized 32 bytes here is just a waste of space.
Modified:
user/ed/utmpx/include/utmpx.h
user/ed/utmpx/lib/libc/gen/utxdb.h
Modified: user/ed/utmpx/include/utmpx.h
==============================================================================
--- user/ed/utmpx/include/utmpx.h Mon Jan 11 18:35:58 2010 (r202098)
+++ user/ed/utmpx/include/utmpx.h Mon Jan 11 18:39:11 2010 (r202099)
@@ -44,7 +44,7 @@ struct utmpx {
char ut_id[8]; /* Record identifier. */
pid_t ut_pid; /* Process ID. */
char ut_user[32]; /* User login name. */
- char ut_line[32]; /* Device name. */
+ char ut_line[16]; /* Device name. */
#if __BSD_VISIBLE
char ut_host[128]; /* Remote hostname. */
#else
Modified: user/ed/utmpx/lib/libc/gen/utxdb.h
==============================================================================
--- user/ed/utmpx/lib/libc/gen/utxdb.h Mon Jan 11 18:35:58 2010 (r202098)
+++ user/ed/utmpx/lib/libc/gen/utxdb.h Mon Jan 11 18:39:11 2010 (r202099)
@@ -51,7 +51,7 @@ struct futx {
char fu_id[8];
uint32_t fu_pid;
char fu_user[32];
- char fu_line[32];
+ char fu_line[16];
char fu_host[128];
} __packed;
More information about the svn-src-user
mailing list