pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
bug?? in oid2name
2+ messages / 2 participants
[nested] [flat]

* bug?? in oid2name
@ 2001-11-15 16:27 Luis Amigo <lamigo@atc.unican.es>
  2001-11-15 18:26 ` Re: bug?? in oid2name Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Luis Amigo @ 2001-11-15 16:27 UTC (permalink / raw)
  To: pgsql-admin

I'm running postgers 7.1.3 on a origin 2000 running Irix 6.5.13 and
oid2name hangs up. It's because on line   68 "while ((c = getopt(argc,
argv, "H:p:U:P:d:t:o:xh?")) != EOF)"
we're trying to compare a char (unsigned int on IRIX) with EOF(-1 here).

it's fixed declaring int c instead of char c.
hope it helps






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: bug?? in oid2name
  2001-11-15 16:27 bug?? in oid2name Luis Amigo <lamigo@atc.unican.es>
@ 2001-11-15 18:26 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2001-11-15 18:26 UTC (permalink / raw)
  To: Luis Amigo <lamigo@atc.unican.es>; +Cc: pgsql-admin

> I'm running postgers 7.1.3 on a origin 2000 running Irix 6.5.13 and
> oid2name hangs up. It's because on line   68 "while ((c = getopt(argc,
> argv, "H:p:U:P:d:t:o:xh?")) != EOF)"
> we're trying to compare a char (unsigned int on IRIX) with EOF(-1 here).
> 
> it's fixed declaring int c instead of char c.
> hope it helps

Good catch.  Fix applied and will appear in 7.2beta3.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-11-15 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 16:27 bug?? in oid2name Luis Amigo <lamigo@atc.unican.es>
2001-11-15 18:26 ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox