Re: [LTP] [PATCH 01/13]Add missing parameters for tst_brkm()

Mike Frysinger
2011-01-06T18:19:50Z

On Thu, Jan 6, 2011 at 5:54 AM, tangchen wrote:
> --- a/testcases/kernel/syscalls/fchmod/fchmod03.c
> +++ b/testcases/kernel/syscalls/fchmod/fchmod03.c
> @@ -178,7 +178,7 @@ void cleanup()
>      TEST_CLEANUP;
>
>      if (close(fd) == -1)
> -        tst_brkm(TWARN|TERRNO, "close failed");
> +        tst_brkm(TWARN|TERRNO, NULL, "close failed");

i guess we should add a non-null gcc attribute to the tst_brkm
function ... and perhaps a printf attribute if it doesnt have one
already
-mike