This is the mail archive of the
gnats-cvs@sourceware.cygnus.com
mailing list for the GNATS project.
gnats/gnats ChangeLog client.c getclose.c gnat ...
- To: gnats-cvs at sourceware dot cygnus dot com
- Subject: gnats/gnats ChangeLog client.c getclose.c gnat ...
- From: bmanson at sourceware dot cygnus dot com
- Date: 19 Mar 2000 09:32:01 -0000
CVSROOT: /cvs/gnats
Module name: gnats
Changes by: bmanson@sourceware.cygnus.com 00/03/19 01:32:01
Modified files:
gnats : ChangeLog client.c getclose.c gnats.el gnats.h
pr-age.c pr-edit.c pr.h query-pr.c
Log message:
* gnats.el: Use query-pr --gnats-server-addr to get the
hostname, port, etc. of the database to connect to.
* query-pr.c: Add --print-server-addr option.
* Change callers of client_init_gnats () to check its return
status, and to handle exiting etc.
* client.c (clientConnect): Add an ErrorDesc argument to return an
error status. Don't exit on error anymore.
(scanEnv): Make public, and don't use const char ** arguments
since we're putting allocated strings into the pointers. The
values returned contain defaults; this function now completely
determines the user/password/host/port/database to use.
(client_init_gnats): Make copies of the passed-in arguments to
facilitate cleanup. Free up values obtained from scanEnv(). Add
an ErrorDesc argument, and return a non-zero value on error.