Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-28 Thread Sean C. Farley
On Tue, 25 Sep 2007, Bruce Evans wrote: On Sat, 22 Sep 2007, Sean C. Farley wrote: On Sat, 22 Sep 2007, Bruce Evans wrote: ... Partial analysis: - the size_t variable must have a small value that is representable as an int (else casting it to int would be a bug and/or printing a line o

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-24 Thread Bruce Evans
On Sat, 22 Sep 2007, Sean C. Farley wrote: On Sat, 22 Sep 2007, Bruce Evans wrote: ... Partial analysis: - the size_t variable must have a small value that is representable as an int (else casting it to int would be a bug and/or printing a line of that length would be a style bug). Wh

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-23 Thread Bruce Evans
On Sun, 23 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: Bruce Evans <[EMAIL PROTECTED]> writes: On Sat, 22 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: s/to remove the warning/to actually work/ Please be precise :-). s/to remove the warning ... on 64-bit platforms/to avoid undefined behavio

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-23 Thread Dag-Erling Smørgrav
Bruce Evans <[EMAIL PROTECTED]> writes: > On Sat, 22 Sep 2007, [utf-8] Dag-Erling Smørgrav wrote: > > s/to remove the warning/to actually work/ > Please be precise :-). > s/to remove the warning ... on 64-bit platforms/to avoid undefined behaviour > on platforms where size_t is not u_int, and to av

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Sean C. Farley
On Sat, 22 Sep 2007, Bruce Evans wrote: On Sat, 22 Sep 2007, [utf-8] Dag-Erling Smørgrav wrote: Sean Farley <[EMAIL PROTECTED]> writes: Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Bruce Evans
On Sat, 22 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: Sean Farley <[EMAIL PROTECTED]> writes: Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit platforms. s/to remove the warning/to

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Dag-Erling Smørgrav
Sean Farley <[EMAIL PROTECTED]> writes: > Log: > The precision for a string argument in a call to warnx() needs to be cast > to an int to remove the warning from using a size_t variable on 64-bit > platforms. s/to remove the warning/to actually work/ DES -- Dag-Erling Smørgrav - [EMAIL P