]> andersk Git - moira.git/blobdiff - lib/mr_connect.c
fixed gramattical error
[moira.git] / lib / mr_connect.c
index b86ec892579752d3cac55facaf53ad3078f5cd7d..ab9fef64531687b2003a42e18fb23251a30daadc 100644 (file)
@@ -4,15 +4,18 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  *     
  *     This routine is part of the client library.  It handles
- * creating a connection to the sms server.
+ *     creating a connection to the sms server.
  */
 
 #ifndef lint
 static char *rcsid_sms_connect_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include "sms_private.h"
 
 /*
@@ -36,6 +39,7 @@ int sms_connect()
        return errno;
     if (connection_status(_sms_conn) == CON_STOPPED) {
        register status = connection_errno(_sms_conn);
+       if (!status) status = SMS_CANT_CONNECT;
        sms_disconnect();
        return status;
     }
@@ -58,6 +62,7 @@ int sms_noop()
 
     CHECK_CONNECTED;
     params = &param_st;
+    params->sms_version_no = sending_version_no;
     params->sms_procno = SMS_NOOP;
     params->sms_argc = 0;
     params->sms_argl = NULL;
This page took 0.09108 seconds and 4 git commands to generate.