Re: [SSSD] [PATCH] UTIL: do not redefine SIZE_T_MAX

2013-09-03 Thread Sumit Bose
On Mon, Sep 02, 2013 at 10:55:55PM +0200, Jakub Hrozek wrote: On Mon, Sep 02, 2013 at 03:20:12PM -0400, Simo Sorce wrote: On Mon, 2013-09-02 at 19:18 +0200, Lukas Slebodnik wrote: ehlo, Some platforms can have defined SIZE_T_MAX. It is better to use conditional build. Two

Re: [SSSD] [PATCH] UTIL: do not redefine SIZE_T_MAX

2013-09-02 Thread Simo Sorce
On Mon, 2013-09-02 at 19:18 +0200, Lukas Slebodnik wrote: ehlo, Some platforms can have defined SIZE_T_MAX. It is better to use conditional build. Two patches are attached. one for master(1.10) and second for 1.9 Uhmm defining SIZE_T_MAX as (size_t)-1 is not technically correct, it may

Re: [SSSD] [PATCH] UTIL: do not redefine SIZE_T_MAX

2013-09-02 Thread Jakub Hrozek
On Mon, Sep 02, 2013 at 03:20:12PM -0400, Simo Sorce wrote: On Mon, 2013-09-02 at 19:18 +0200, Lukas Slebodnik wrote: ehlo, Some platforms can have defined SIZE_T_MAX. It is better to use conditional build. Two patches are attached. one for master(1.10) and second for 1.9 Uhmm