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:

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_getpwuid

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_drv.c:873:

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 little

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

2004-10-08 Thread Harti Brandt
On Fri, 8 Oct 2004, Dan Nelson wrote: DNIn 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, 2004 at 01:16:17PM

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 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

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

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:1999

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.

ad0: FAILURE - WRITE_DMA

2004-10-08 Thread Mikhail P.
Hi, This question probably has been discussed numerous times, but I'm somewhat unsure what really causes ATA failures.. I have pretty basic server here which has two IDE drives - each is 200GB. System is FreeBSD-5.2.1-p9 That server has been setup about 9 months ago, and just about 3 months

Bit field definition ?

2004-10-08 Thread Li, Qing
The bit fields th_x2 and th_off in struct tcphdr, even though defined as u_int, actually occupies 1 byte. What's the trick ? -- Qing ___ [EMAIL PROTECTED] mailing list

Re: hacking SCO....

2004-10-08 Thread Sergey Babkin
Doug Russell wrote: On Thu, 7 Oct 2004, John Von Essen wrote: Well, I eventually got this SCO system working. But today, some errors appeared: 505k:unrecover error reading SCSI disk on 0 Dev - 1/42 cha = 0 id = 0 1 on = 0 Block 6578 medium error unrecovered read error HTFS

Re: Bit field definition ?

2004-10-08 Thread Dan Nelson
In the last episode (Oct 08), Li, Qing said: The bit fields th_x2 and th_off in struct tcphdr, even though defined as u_int, actually occupies 1 byte. u_int th_x2:4,/* (unused) */ th_off:4; /* data offset */ The :4 after each variable means 4 bits long,