tail(1): improve style consistency of previous change
authorDaniel Fojt <df@neosystem.org>
Thu, 18 Jun 2020 04:28:36 +0000 (06:28 +0200)
committerDaniel Fojt <df@neosystem.org>
Thu, 18 Jun 2020 04:28:36 +0000 (06:28 +0200)
Suggested by: Sascha Wildner

usr.bin/tail/forward.c

index a873a5c..49698fb 100644 (file)
@@ -144,7 +144,7 @@ forward(FILE *fp, enum STYLE style, off_t off, struct stat *sbp)
                                return;
                break;
        case RLINES:
-               if (S_ISREG(sbp->st_mode) && sbp->st_size)
+               if (S_ISREG(sbp->st_mode) && sbp->st_size != 0)
                        if (!off) {
                                if (fseeko(fp, (off_t)0, SEEK_END) == -1) {
                                        ierr();