diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/diff.c | 4 | ||||
-rw-r--r-- | editors/ed.c | 2 |
2 files changed, 3 insertions, 3 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. |
diff --git a/editors/ed.c b/editors/ed.c index f0e5e4d5d..a4c419099 100644 --- a/editors/ed.c +++ b/editors/ed.c | |||
@@ -206,7 +206,7 @@ static void doCommands(void) | |||
206 | if (fileName) | 206 | if (fileName) |
207 | printf("\"%s\"\n", fileName); | 207 | printf("\"%s\"\n", fileName); |
208 | else | 208 | else |
209 | printf("No file name\n"); | 209 | puts("No file name"); |
210 | break; | 210 | break; |
211 | } | 211 | } |
212 | free(fileName); | 212 | free(fileName); |