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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com>
Cc: "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-27 18:56:01
Message-ID: 7590.1169924161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Rajesh Kumar Mallah" <mallah(dot)rajesh(at)gmail(dot)com> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2007-01-27 19:42:52 Re: cluster or database?
Previous Message Rajesh Kumar Mallah 2007-01-27 18:38:28 mingw compilation problem-> warning: implicit declaration of function `bzero'