Re: please help with: warning: initialization makes integer from pointer

2004-10-10 Thread Harti Brandt
On Fri, 8 Oct 2004, Mike Hunter wrote: MH>On Oct 08, "Harti Brandt" wrote: MH> MH>> On Fri, 8 Oct 2004, Dan Nelson wrote: MH>> MH>> Memset is actually not portable if the structure contains pointers because MH>> it would initialize the pointers to 0 values not to 0 pointers. A 0 MH>> pointer no

Re: please help with: warning: initialization makes integer from pointer

2004-10-09 Thread Kurt J. Lidl
On Fri, Oct 08, 2004 at 12:25:45PM -0500, Sam wrote: > > Sick! > > > > Are there actually systems out there that don't have "all-zero" NULL pointers? > > > > You have officially shattered my previously held beliefs about the > > sacredness of memset :( > > If there are, I'd be interested to know o

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Alexey Neyman
On Friday 08 October 2004 21:25, Sam wrote: > > Are there actually systems out there that don't have "all-zero" NULL pointers? > > > > You have officially shattered my previously held beliefs about the > > sacredness of memset :( > > If there are, I'd be interested to know of them. http://www.es

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Dag-Erling Smørgrav
Sam <[EMAIL PROTECTED]> writes: > If there are, I'd be interested to know of them. http://www.eskimo.com/~scs/C-faq/q5.17.html > Like zero'ing out bss, the definition of NULL as 0 is > left as implementation specific. no, zeroing out bss is (indirectly) required by the standard (ISO-IEC-9899:199

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Dag-Erling Smørgrav
Mike Hunter <[EMAIL PROTECTED]> writes: > Are there actually systems out there that don't have "all-zero" NULL > pointers? Yes. None that FreeBSD runs on, though. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http:/

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Sam
Sick! Are there actually systems out there that don't have "all-zero" NULL pointers? You have officially shattered my previously held beliefs about the sacredness of memset :( If there are, I'd be interested to know of them. Like zero'ing out bss, the definition of NULL as 0 is left as implementati

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Mike Hunter
On Oct 08, "Harti Brandt" wrote: > On Fri, 8 Oct 2004, Dan Nelson wrote: > > Memset is actually not portable if the structure contains pointers because > it would initialize the pointers to 0 values not to 0 pointers. A 0 > pointer not necessarily has a 0 value. A pointer can be portably be >

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Harti Brandt
On Fri, 8 Oct 2004, Dan Nelson wrote: DN>In the last episode (Oct 07), Andreas Klemm said: DN>> Dear FreeBSD hackers, DN>> DN>> could somebody please help Jonathan, the dspam owner, how to code DN>> this best under FreeBSD ? DN>> DN>> Please see his question below: DN>> DN>> On Thu, Oct 07, 200

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Dan Nelson
In the last episode (Oct 07), Andreas Klemm said: > Dear FreeBSD hackers, > > could somebody please help Jonathan, the dspam owner, how to code > this best under FreeBSD ? > > Please see his question below: > > On Thu, Oct 07, 2004 at 01:16:17PM -0400, Jonathan A. Zdziarski wrote: > > I'm a litt

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Danny Braniss
> Dear FreeBSD hackers, > > could somebody please help Jonathan, the dspam owner, how to code > this best under FreeBSD ? > > Please see his question below: > > On Thu, Oct 07, 2004 at 01:16:17PM -0400, Jonathan A. Zdziarski wrote: > > I'm a little concerned about these warnings: > > > > pgsql_

Re: please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Stefan Farfeleder
On Thu, Oct 07, 2004 at 07:43:22PM +0200, Andreas Klemm wrote: > Dear FreeBSD hackers, > > could somebody please help Jonathan, the dspam owner, how to code > this best under FreeBSD ? > s->p_getpwnam = (struct passwd) { NULL, NULL, 0, 0, NULL, NULL, NULL }; > ! > s->p_g

please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Andreas Klemm
Dear FreeBSD hackers, could somebody please help Jonathan, the dspam owner, how to code this best under FreeBSD ? Please see his question below: On Thu, Oct 07, 2004 at 01:16:17PM -0400, Jonathan A. Zdziarski wrote: > I'm a little concerned about these warnings: > > pgsql_drv.c:873: warning: in