]> andersk Git - moira.git/commitdiff
made the server to connect to an argument to sms_connect.
authormar <mar>
Thu, 1 Dec 1988 15:10:11 +0000 (15:10 +0000)
committermar <mar>
Thu, 1 Dec 1988 15:10:11 +0000 (15:10 +0000)
lib/mr_connect.c

index ab9fef64531687b2003a42e18fb23251a30daadc..ab0da959a32a43ef661b6af809611ab570d2fb71 100644 (file)
@@ -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:
- */
This page took 0.078002 seconds and 5 git commands to generate.