[Pkg-shadow-commits] r2792 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Fri Apr 24 23:05:29 UTC 2009
Author: nekral-guest
Date: 2009-04-24 23:05:29 +0000 (Fri, 24 Apr 2009)
New Revision: 2792
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/lastlog.c
Log:
* src/lastlog.c: Remove function calls from within assert().
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-24 23:04:27 UTC (rev 2791)
+++ upstream/trunk/ChangeLog 2009-04-24 23:05:29 UTC (rev 2792)
@@ -1,5 +1,9 @@
2009-04-25 Nicolas François <nicolas.francois at centraliens.net>
+ * src/lastlog.c: Remove function calls from within assert().
+
+2009-04-25 Nicolas François <nicolas.francois at centraliens.net>
+
* libmisc/obscure.c: Change some int to size_t.
2009-04-25 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/src/lastlog.c
===================================================================
--- upstream/trunk/src/lastlog.c 2009-04-24 23:04:27 UTC (rev 2791)
+++ upstream/trunk/src/lastlog.c 2009-04-24 23:05:29 UTC (rev 2792)
@@ -108,7 +108,8 @@
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.
More information about the Pkg-shadow-commits
mailing list