From d3b02af275b18a5c3401e8234ef3ec01a89645b2 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Tue, 29 Sep 2015 15:06:08 +0800 Subject: [PATCH] Missing random.c from commit 198980b, review of newmlargt interface. --- random.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/random.c b/random.c index 742c465..edd480e 100644 --- a/random.c +++ b/random.c @@ -1185,18 +1185,11 @@ int fmatch(int ch) } static int iovstring( int f, int n, const char *prompt, int (*fun)( char *)) { - newarg_t *argp ; int status ; /* status return code */ char *tstring ; /* string to add */ /* ask for string to insert */ - argp = newmlargt( prompt, 0) ; /* grab as big a token as screen allow */ - if( argp == NULL) - return FALSE ; - - status = argp->status ; - tstring = argp->buf ; - free( argp) ; + status = newmlargt( &tstring, prompt, 0) ; /* grab as big a token as screen allow */ if( tstring == NULL) return status ;