8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

Don't confuse MSVC8 with deprecated 'errcode' as formal parameter

This commit is contained in:
hvlad 2009-02-01 22:16:24 +00:00
parent 534ad7dc7c
commit ace562227b

View File

@ -61,26 +61,26 @@ static struct rerr {
*/
/* ARGSUSED */
size_t
regerror(errcode, preg, errbuf, errbuf_size)
int errcode;
regerror(_errcode, preg, errbuf, errbuf_size)
int _errcode;
const regex_t *preg;
char *errbuf;
size_t errbuf_size;
{
register struct rerr *r;
register size_t len;
register int target = errcode &~ REG_ITOA;
register int target = _errcode &~ REG_ITOA;
register char *s;
char convbuf[50];
if (errcode == REG_ATOI)
if (_errcode == REG_ATOI)
s = regatoi(preg, convbuf);
else {
for (r = rerrs; r->code >= 0; r++)
if (r->code == target)
break;
if (errcode&REG_ITOA) {
if (_errcode&REG_ITOA) {
if (r->code >= 0)
(void) strcpy(convbuf, r->name);
else