Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/editors/ed.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/editors/ed.c

    r2725 r3232  
    77 * The "ed" built-in command (much simplified)
    88 */
     9
     10//usage:#define ed_trivial_usage ""
     11//usage:#define ed_full_usage ""
    912
    1013#include "libbb.h"
     
    130133         * >0 length of input string, including terminating '\n'
    131134         */
    132         len = read_line_input(": ", buf, sizeof(buf), NULL);
     135        len = read_line_input(NULL, ": ", buf, sizeof(buf), /*timeout*/ -1);
    133136        if (len <= 0)
    134137            return;
     
    228231            if (!dirty)
    229232                return;
    230             len = read_line_input("Really quit? ", buf, 16, NULL);
     233            len = read_line_input(NULL, "Really quit? ", buf, 16, /*timeout*/ -1);
    231234            /* read error/EOF - no way to continue */
    232235            if (len < 0)
     
    452455        /*
    453456         * The new string is larger, so allocate a new line
    454          * structure and use that.  Link it in in place of
     457         * structure and use that.  Link it in place of
    455458         * the old line structure.
    456459         */
     
    542545         * >0 length of input string, including terminating '\n'
    543546         */
    544         len = read_line_input("", buf, sizeof(buf), NULL);
     547        len = read_line_input(NULL, "", buf, sizeof(buf), /*timeout*/ -1);
    545548        if (len <= 0) {
    546549            /* Previously, ctrl-C was exiting to shell.
Note: See TracChangeset for help on using the changeset viewer.