Re: [PATCH] terminal: Convert all *alloc's to x*alloc's.

2014-04-29 Thread Kristian Høgsberg
On Mon, Apr 28, 2014 at 06:44:08PM +, Bryce W. Harrington wrote: > This ensures the allocation results are checked for NULL (out of > memory), and terminates the program in such a case. > > Signed-off-by: Bryce Harrington Applied, thanks. Kristian > --- > clients/terminal.c |6 +++---

Re: [PATCH] terminal: Convert all *alloc's to x*alloc's.

2014-04-29 Thread Pekka Paalanen
On Tue, 29 Apr 2014 14:35:21 +0200 Michael Schellenberger Costa wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > i might be dumb again, but as zalloc is a one line function, why not > just add the check to zalloc instead of searching for all uses of it? Function naming

Re: [PATCH] terminal: Convert all *alloc's to x*alloc's.

2014-04-29 Thread Michael Schellenberger Costa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, i might be dumb again, but as zalloc is a one line function, why not just add the check to zalloc instead of searching for all uses of it? Would there be any use case where one would not check for out of memory? best wishes Michael On 29.0

Re: [PATCH] terminal: Convert all *alloc's to x*alloc's.

2014-04-29 Thread Pekka Paalanen
On Mon, 28 Apr 2014 18:44:08 + "Bryce W. Harrington" wrote: > This ensures the allocation results are checked for NULL (out of > memory), and terminates the program in such a case. > > Signed-off-by: Bryce Harrington > --- > clients/terminal.c |6 +++--- > 1 file changed, 3 insertions(

[PATCH] terminal: Convert all *alloc's to x*alloc's.

2014-04-28 Thread Bryce W. Harrington
This ensures the allocation results are checked for NULL (out of memory), and terminates the program in such a case. Signed-off-by: Bryce Harrington --- clients/terminal.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/terminal.c b/clients/terminal.c index 5