Compare commits

..

2 Commits

2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CC=clang CC=clang
CFLAGS=-pedantic -Wall -Wextra -std=c99 -D_GNU_SOURCE -O3 CFLAGS=-pedantic -Wall -Wextra -std=c99 -D_GNU_SOURCE -Ofast
all: shorten all: shorten

View File

@ -114,8 +114,8 @@ int main(int argc, char **argv) {
// Beginning of file? // Beginning of file?
if (lseek(fd, 0, SEEK_CUR) == 0) { if (lseek(fd, 0, SEEK_CUR) == 0) {
printf("No change: file does not end with a newline\n"); printf("No change: requested removal would leave empty file\n");
return 1; return 3;
} }
} }