[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pkg-shadow-commits
Subject:    [Pkg-shadow-commits] r2844 - in upstream/trunk: . lib
From:       Nicolas_FRANÇOIS <nekral-guest () alioth ! debian ! org>
Date:       2009-04-28 21:01:20
Message-ID: E1LyuQa-0004uT-LQ () alioth ! debian ! org
[Download RAW message or body]

Author: nekral-guest
Date: 2009-04-28 21:01:20 +0000 (Tue, 28 Apr 2009)
New Revision: 2844

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/defines.h
Log:
	* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
	USER_NAME_MAX_LENGTH.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-28 20:59:31 UTC (rev 2843)
+++ upstream/trunk/ChangeLog	2009-04-28 21:01:20 UTC (rev 2844)
@@ -1,5 +1,10 @@
 2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
 
+	* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
+	USER_NAME_MAX_LENGTH.
+
+2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
+
 	* src/login.c: Change a snprintf() to strncpy(). There are no
 	format.
 

Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h	2009-04-28 20:59:31 UTC (rev 2843)
+++ upstream/trunk/lib/defines.h	2009-04-28 21:01:20 UTC (rev 2844)
@@ -367,8 +367,10 @@
 
 /* Maximum length of usernames */
 #ifdef HAVE_UTMPX_H
+# include <utmpx.h>
 # define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
 #else
+# include <utmp.h>
 # ifdef HAVE_STRUCT_UTMP_UT_USER
 #  define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 # else



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic