[Pkg-shadow-commits] r3436 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Sat Jul 23 08:10:27 UTC 2011
Author: nekral-guest
Date: 2011-07-23 08:10:27 +0000 (Sat, 23 Jul 2011)
New Revision: 3436
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/lastlog.c
Log:
* src/lastlog.c: Add annotations to indicate that usage() does not
return.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2011-07-22 23:59:57 UTC (rev 3435)
+++ upstream/trunk/ChangeLog 2011-07-23 08:10:27 UTC (rev 3436)
@@ -1,5 +1,10 @@
2011-07-23 Nicolas François <nicolas.francois at centraliens.net>
+ * src/lastlog.c: Add annotations to indicate that usage() does not
+ return.
+
+2011-07-23 Nicolas François <nicolas.francois at centraliens.net>
+
* src/faillog.c: Add annotations to indicate that usage() does not
return.
* src/faillog.c: Fix message: this is faillog, not lastlog.
Modified: upstream/trunk/src/lastlog.c
===================================================================
--- upstream/trunk/src/lastlog.c 2011-07-22 23:59:57 UTC (rev 3435)
+++ upstream/trunk/src/lastlog.c 2011-07-23 08:10:27 UTC (rev 3436)
@@ -71,7 +71,7 @@
#define NOW (time ((time_t *) 0))
-static void usage (int status)
+static /*@noreturn@*/void usage (int status)
{
fputs (_("Usage: lastlog [options]\n"
"\n"
@@ -208,7 +208,7 @@
switch (c) {
case 'h':
usage (EXIT_SUCCESS);
- break;
+ /*@notreached@*/break;
case 't':
{
unsigned long days;
@@ -267,7 +267,7 @@
}
default:
usage (EXIT_FAILURE);
- break;
+ /*@notreached@*/break;
}
}
if (argc > optind) {
More information about the Pkg-shadow-commits
mailing list