+2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/utmp.c: Added splint annotations.
+
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c: Only set ut_time and ut_tv if gettimeofday()
*
* 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;
*
* 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;
/*
* 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;