aboutsummaryrefslogtreecommitdiff
path: root/editors/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/diff.c')
-rw-r--r--editors/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/diff.c b/editors/diff.c
index e0adcee59..a892cfdf2 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -433,7 +433,7 @@ static void fetch(FILE_and_pos_t *ft, const off_t *ix, int a, int b, int ch)
433 for (j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) { 433 for (j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) {
434 int c = fgetc(ft->ft_fp); 434 int c = fgetc(ft->ft_fp);
435 if (c == EOF) { 435 if (c == EOF) {
436 printf("\n\\ No newline at end of file\n"); 436 puts("\n\\ No newline at end of file");
437 return; 437 return;
438 } 438 }
439 ft->ft_pos++; 439 ft->ft_pos++;
@@ -692,7 +692,7 @@ static bool diff(FILE* fp[2], char *file[2])
692 continue; 692 continue;
693 printf(",%d", (a < b) ? b - a + 1 : 0); 693 printf(",%d", (a < b) ? b - a + 1 : 0);
694 } 694 }
695 printf(" @@\n"); 695 puts(" @@");
696 /* 696 /*
697 * Output changes in "unified" diff format--the old and new lines 697 * Output changes in "unified" diff format--the old and new lines
698 * are printed together. 698 * are printed together.