Re: [PATCH] xgethostbyname using realloc()

2009-08-29 Thread Bruno Haible
Jim Meyering wrote: > Also, you've made it so upon failure it gives an > inferior diagnostic, using perror, rather than "error". Yes, the error message ": memory exhausted" is more understandable for an end user than "realloc: Cannot allocate memory". End users don't even know what 'realloc' is.

Re: [PATCH] xgethostbyname using realloc()

2009-08-28 Thread Jim Meyering
Robert Millan wrote: > This makes it easier to import xgethostname.c into an external program. What's the motivation? removing dependencies? > 2009-08-29 Robert Millan > > * lib/xgethostname.c: Remove `"xalloc.h"'. > (xgethostname): Use realloc() instead of x2realloc(). > ... > -

[PATCH] xgethostbyname using realloc()

2009-08-28 Thread Robert Millan
This makes it easier to import xgethostname.c into an external program. 2009-08-29 Robert Millan * lib/xgethostname.c: Remove `"xalloc.h"'. (xgethostname): Use realloc() instead of x2realloc(). -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will dec