svn commit: r327852 - stable/11/usr.bin/at

Alan Somers asomers at FreeBSD.org
Thu Jan 11 23:59:28 UTC 2018


Author: asomers
Date: Thu Jan 11 23:59:27 2018
New Revision: 327852
URL: https://svnweb.freebsd.org/changeset/base/327852

Log:
  MFC r326698:
  
  at(1): annotate some intended switch-case fallthroughs
  
  Reported by:	Coverity
  CID:		1008191
  Sponsored by:	Spectra Logic Corp

Modified:
  stable/11/usr.bin/at/parsetime.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/at/parsetime.c
==============================================================================
--- stable/11/usr.bin/at/parsetime.c	Thu Jan 11 23:58:41 2018	(r327851)
+++ stable/11/usr.bin/at/parsetime.c	Thu Jan 11 23:59:27 2018	(r327852)
@@ -614,6 +614,7 @@ parsetime(int argc, char **argv)
 	    }
 	    /* now is optional prefix for PLUS tree */
 	    expect(PLUS);
+	    /* FALLTHROUGH */
     case PLUS:
 	    plus(&runtime);
 	    break;
@@ -638,8 +639,10 @@ parsetime(int argc, char **argv)
 	     */
     case TEATIME:
 	    hr += 4;
+	    /* FALLTHROUGH */
     case NOON:
 	    hr += 12;
+	    /* FALLTHROUGH */
     case MIDNIGHT:
 	    if (runtime.tm_hour >= hr) {
 		runtime.tm_mday++;


More information about the svn-src-all mailing list