Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/editors/ed.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/editors/ed.c
r2725 r3232 7 7 * The "ed" built-in command (much simplified) 8 8 */ 9 10 //usage:#define ed_trivial_usage "" 11 //usage:#define ed_full_usage "" 9 12 10 13 #include "libbb.h" … … 130 133 * >0 length of input string, including terminating '\n' 131 134 */ 132 len = read_line_input( ": ", buf, sizeof(buf), NULL);135 len = read_line_input(NULL, ": ", buf, sizeof(buf), /*timeout*/ -1); 133 136 if (len <= 0) 134 137 return; … … 228 231 if (!dirty) 229 232 return; 230 len = read_line_input( "Really quit? ", buf, 16, NULL);233 len = read_line_input(NULL, "Really quit? ", buf, 16, /*timeout*/ -1); 231 234 /* read error/EOF - no way to continue */ 232 235 if (len < 0) … … 452 455 /* 453 456 * The new string is larger, so allocate a new line 454 * structure and use that. Link it in inplace of457 * structure and use that. Link it in place of 455 458 * the old line structure. 456 459 */ … … 542 545 * >0 length of input string, including terminating '\n' 543 546 */ 544 len = read_line_input( "", buf, sizeof(buf), NULL);547 len = read_line_input(NULL, "", buf, sizeof(buf), /*timeout*/ -1); 545 548 if (len <= 0) { 546 549 /* Previously, ctrl-C was exiting to shell.
Note:
See TracChangeset
for help on using the changeset viewer.