From mboxrd@z Thu Jan 1 00:00:00 1970 From: bmanson@sourceware.cygnus.com To: gnats-cvs@sourceware.cygnus.com Subject: gnats/gnats ChangeLog client.c getclose.c gnat ... Date: Sun, 19 Mar 2000 01:32:00 -0000 Message-id: <20000319093201.18385.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00100.html List-Id: 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.