From 861773bf77a0018e8c0c0eec0dcb67472137eed5 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 24 Apr 2009 23:05:29 +0000 Subject: [PATCH] * src/lastlog.c: Remove function calls from within assert(). --- ChangeLog | 4 ++++ src/lastlog.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cc8bb3f5..11673e14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-25 Nicolas François + + * src/lastlog.c: Remove function calls from within assert(). + 2009-04-25 Nicolas François * libmisc/obscure.c: Change some int to size_t. diff --git a/src/lastlog.c b/src/lastlog.c index 6203e668..9fde1612 100644 --- a/src/lastlog.c +++ b/src/lastlog.c @@ -108,7 +108,8 @@ static void print_one (/*@null@*/const struct passwd *pw) if (offset <= (statbuf.st_size - sizeof (ll))) { /* fseeko errors are not really relevant for us. */ - assert ( fseeko (lastlogfile, offset, SEEK_SET) == 0 ); + int err = fseeko (lastlogfile, offset, SEEK_SET); + assert (0 == err); /* lastlog is a sparse file. Even if no entries were * entered for this user, which should be able to get the * empty entry in this case.