Skip site navigation (1) Skip section navigation (2)

Re: mingw compilation problem-> warning: implicit declaration of function `bzero'

From: james fu <jfu62(at)yahoo(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: mingw compilation problem-> warning: implicit declaration of function `bzero'
Date: 2007-01-29 02:00:58
Message-ID: 102834.15834.qm@web55102.mail.re4.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-admin
could you un-subscribe me - JFU62(at)yahoo(dot)com?
   
  Thank you for the help!

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
  "Rajesh Kumar Mallah" writes:
> i am trying to compile a trigger function under MINGW32. its giving the
> said warning. the call of bzero is
> bzero(data, sizeof(AuditData));

bzero() is long obsolete, and was never officially standard AFAIK.
Use memset() instead:

memset(data, 0, sizeof(AuditData));

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

In response to

pgsql-admin by date

Next:From: ArnauDate: 2007-01-29 12:20:00
Subject: Very strange postgresql behaviour
Previous:From: David FetterDate: 2007-01-28 23:36:11
Subject: Re: [ADMIN] server process (PID xxx) was

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group