[Pkg-shadow-commits] r2759 - in upstream/trunk: . libmisc

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Wed Apr 22 21:07:33 UTC 2009


Author: nekral-guest
Date: 2009-04-22 21:07:33 +0000 (Wed, 22 Apr 2009)
New Revision: 2759

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/utmp.c
Log:
	* libmisc/utmp.c: Added splint annotations.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-22 21:06:13 UTC (rev 2758)
+++ upstream/trunk/ChangeLog	2009-04-22 21:07:33 UTC (rev 2759)
@@ -1,5 +1,9 @@
 2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/utmp.c: Added splint annotations.
+
+2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* libmisc/utmp.c: Only set ut_time and ut_tv if gettimeofday()
 	succeeds.
 

Modified: upstream/trunk/libmisc/utmp.c
===================================================================
--- upstream/trunk/libmisc/utmp.c	2009-04-22 21:06:13 UTC (rev 2758)
+++ upstream/trunk/libmisc/utmp.c	2009-04-22 21:07:33 UTC (rev 2759)
@@ -98,7 +98,7 @@
  *
  *	Return NULL if no entries exist in utmp for the current process.
  */
-struct utmp *get_current_utmp (void)
+/*@null@*//*@only@*/struct utmp *get_current_utmp (void)
 {
 	struct utmp *ut;
 	struct utmp *ret = NULL;
@@ -183,10 +183,10 @@
  *
  *	The returned structure shall be freed by the caller.
  */
-struct utmp *prepare_utmp (const char *name,
+/*@only@*/struct utmp *prepare_utmp (const char *name,
                            const char *line,
                            const char *host,
-                           struct utmp *ut)
+                           /*@null@*/const struct utmp *ut)
 {
 	struct timeval tv;
 	char *hostname = NULL;
@@ -326,10 +326,10 @@
 /*
  * prepare_utmpx - the UTMPX version for prepare_utmp
  */
-struct utmpx *prepare_utmpx (const char *name,
+/*@only@*/struct utmpx *prepare_utmpx (const char *name,
                              const char *line,
                              const char *host,
-                             struct utmp *ut)
+                             /*@null@*/const struct utmp *ut)
 {
 	struct timeval tv;
 	char *hostname = NULL;




More information about the Pkg-shadow-commits mailing list