Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 18:39:11 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r202099 - in user/ed/utmpx: include lib/libc/gen
Message-ID:  <201001111839.o0BIdBLD042772@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001111839.o0BIdBLD042772>