== should be = (kre)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 15 Aug 1983 13:33:35 +0000 (05:33 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 15 Aug 1983 13:33:35 +0000 (05:33 -0800)
SCCS-vsn: usr.sbin/cron/cron.c 4.8

usr/src/usr.sbin/cron/cron.c

index d3f88a4..5af6345 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)cron.c      4.7 (Berkeley) %G%";
+static char *sccsid = "@(#)cron.c      4.8 (Berkeley) %G%";
 #endif
 
 #include <sys/types.h>
 #endif
 
 #include <sys/types.h>
@@ -59,7 +59,7 @@ main()
                loct = localtime(&itime);
                loct->tm_mon++;          /* 1-12 for month */
                if (loct->tm_wday == 0)
                loct = localtime(&itime);
                loct->tm_mon++;          /* 1-12 for month */
                if (loct->tm_wday == 0)
-                       loct->tm_wday == 7;     /* sunday is 7, not 0 */
+                       loct->tm_wday = 7;      /* sunday is 7, not 0 */
                for(cp = list; *cp != EOS;) {
                        flag = 0;
                        cp = cmp(cp, loct->tm_min);
                for(cp = list; *cp != EOS;) {
                        flag = 0;
                        cp = cmp(cp, loct->tm_min);