From: mar Date: Thu, 1 Dec 1988 15:10:11 +0000 (+0000) Subject: made the server to connect to an argument to sms_connect. X-Git-Tag: KREL1~66 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/bba846893ed2bb4d3591d9896c81619e4557e35c made the server to connect to an argument to sms_connect. --- diff --git a/lib/mr_connect.c b/lib/mr_connect.c index ab9fef64..ab0da959 100644 --- a/lib/mr_connect.c +++ b/lib/mr_connect.c @@ -22,7 +22,8 @@ static char *rcsid_sms_connect_c = "$Header$"; * Open a connection to the sms server. */ -int sms_connect() +int sms_connect(server) +char *server; { extern int errno; @@ -34,7 +35,9 @@ int sms_connect() * number/name. */ errno = 0; - _sms_conn = start_server_connection(SMS_GDB_SERV, ""); + if (!server || (strlen(server) == 0)) + server = SMS_GDB_SERV; + _sms_conn = start_server_connection(server, ""); if (_sms_conn == NULL) return errno; if (connection_status(_sms_conn) == CON_STOPPED) { @@ -75,14 +78,3 @@ int sms_noop() return status; } - -/* - * Local Variables: - * mode: c - * c-indent-level: 4 - * c-continued-statement-offset: 4 - * c-brace-offset: -4 - * c-argdecl-indent: 4 - * c-label-offset: -4 - * End: - */