Re: [hackers] [libsl] die() on failure in ecalloc?

2016-11-05 Thread Hiltjo Posthuma
On Fri, Nov 04, 2016 at 07:53:35PM +0100, Markus Teich wrote: > Heyho Hiltjo, > > > > My proposal would be to change ecalloc to use die() and in the rare cases > > > where the allocation error should be handled gracefully just don't use > > > ecalloc, but calloc directly. > > > > > > Btw: The drw

Re: [hackers] [libsl] die() on failure in ecalloc?

2016-11-04 Thread Markus Teich
Heyho Hiltjo, > > My proposal would be to change ecalloc to use die() and in the rare cases > > where the allocation error should be handled gracefully just don't use > > ecalloc, but calloc directly. > > > > Btw: The drw unification patches are still not merged to libsl, only to dwm, > > dmenu a

Re: [hackers] [libsl] die() on failure in ecalloc?

2016-11-04 Thread Hiltjo Posthuma
On Thu, Nov 03, 2016 at 06:27:21PM +0100, Markus Teich wrote: > Heyho, > Hiya! > Davids patch for sent reminded me of an open issue. I proposed the following > change to libsls ecalloc() a few months ago, but did not get feedback. > > void * > ecalloc(size_t nmemb, size_t size)

[hackers] [libsl] die() on failure in ecalloc?

2016-11-03 Thread Markus Teich
Heyho, Davids patch for sent reminded me of an open issue. I proposed the following change to libsls ecalloc() a few months ago, but did not get feedback. void * ecalloc(size_t nmemb, size_t size) { void *p; if (!(p = calloc(nme