Changes in uspace/app/edit/edit.c [36e9cd1:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
r36e9cd1 ra000878c 475 475 static void file_save_as(void) 476 476 { 477 char *old_fname, *fname; 478 int rc; 479 480 old_fname = (doc.file_name != NULL) ? doc.file_name : ""; 477 const char *old_fname = (doc.file_name != NULL) ? doc.file_name : ""; 478 char *fname; 479 481 480 fname = filename_prompt("Save As", old_fname); 482 481 if (fname == NULL) { … … 485 484 } 486 485 487 rc = file_save(fname);486 int rc = file_save(fname); 488 487 if (rc != EOK) 489 488 return; … … 819 818 spt_t caret_pt; 820 819 coord_t coord; 821 char *fname;822 int n;823 820 824 821 tag_get_pt(&pane.caret_pos, &caret_pt); 825 822 spt_get_coord(&caret_pt, &coord); 826 823 827 fname = (doc.file_name != NULL) ? doc.file_name : "<unnamed>";824 const char *fname = (doc.file_name != NULL) ? doc.file_name : "<unnamed>"; 828 825 829 826 console_goto(con, 0, scr_rows - 1); 830 827 console_set_color(con, COLOR_WHITE, COLOR_BLACK, 0); 831 n = printf(" %d, %d: File '%s'. Ctrl-Q Quit Ctrl-S Save "828 int n = printf(" %d, %d: File '%s'. Ctrl-Q Quit Ctrl-S Save " 832 829 "Ctrl-E Save As", coord.row, coord.column, fname); 833 830 printf("%*s", scr_columns - 1 - n, "");
Note:
See TracChangeset
for help on using the changeset viewer.