Re: [PATCH v4 02/13] sim/erc32: Removed type mismatch compiler warnings

Mike Frysinger
2015-03-17T22:59:44Z

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

On 17 Mar 2015 22:02, Jiri Gaisler wrote:
> * func.c (exec_cmd) : silence compiler warnings when calling system().
> (batch) : replace fgets() with getline().

rewrote this for you

> --- a/sim/erc32/func.c
> +++ b/sim/erc32/func.c
> @@ -80,20 +80,24 @@ batch(sregs, fname)
> char *fname;
> {
> FILE *fp;
> - char lbuf[1024];
> + char *lbuf = NULL;
> + size_t len = 0;
> + ssize_t tmp;

i deleted this tmp for you as it's unused

otherwise, pushed, thanks!
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]