svn commit: r281723 - head/usr.bin/calendar
Eitan Adler
eadler at FreeBSD.org
Sun Apr 19 04:27:52 UTC 2015
Author: eadler
Date: Sun Apr 19 04:27:50 2015
New Revision: 281723
URL: https://svnweb.freebsd.org/changeset/base/281723
Log:
calendar: remove useless check
lineline checked for 0 in the while loop condition. There is no need to
check for it additionally in the body.
CID: 1288959
MFC After: 1 week
Modified:
head/usr.bin/calendar/io.c
Modified: head/usr.bin/calendar/io.c
==============================================================================
--- head/usr.bin/calendar/io.c Sun Apr 19 01:23:12 2015 (r281722)
+++ head/usr.bin/calendar/io.c Sun Apr 19 04:27:50 2015 (r281723)
@@ -257,9 +257,6 @@ cal_parse(FILE *in, FILE *out)
return (1);
while ((linelen = getline(&line, &linecap, in)) > 0) {
- if (linelen == 0)
- continue;
-
if (*line == '#') {
switch (token(line+1, out, &skip)) {
case T_ERR:
More information about the svn-src-head
mailing list