aboutsummaryrefslogtreecommitdiff
path: root/core/cmp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core/cmp: exit loop on EOF rather than null bytesRunxi Yu2024-07-251-4/+2
| | | | Signed-off-by: Runxi Yu <me@runxiyu.org>
* core/cmp: compare fgetc to EOF and use int not charRunxi Yu2024-07-251-2/+3
| | | | | | | | | | | | | | | | Thie solves: box_tmp/cmp_box.c: In function ‘cmp_main’: box_tmp/cmp_box.c:41:25: error: comparison is always false due to limited range of data type [-Werror=type-limits] 41 | if (ch1 == EOF || ch2 == EOF) { | ^~ box_tmp/cmp_box.c:41:39: error: comparison is always false due to limited range of data type [-Werror=type-limits] 41 | if (ch1 == EOF || ch2 == EOF) { | ^~ cc1: all warnings being treated as errors make: *** [Makefile:42: box] Error 1 Signed-off-by: Runxi Yu <me@runxiyu.org>
* treewide: readd copyrightsFerass El Hafidi2023-04-101-0/+3
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* core/: cmpFerass El Hafidi2023-02-211-0/+54
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>