]> andersk Git - moira.git/blobdiff - lib/mr_query.c
fix FDSET initialization
[moira.git] / lib / mr_query.c
index 8adee778bc490c51d5f1c8aec01e7ebe76f4a5c7..4e59282ef24d4a88a20600c1c523ec2f5bc8f7c9 100644 (file)
@@ -4,19 +4,8 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- *     $Log$
- *     Revision 1.4  1987-08-22 17:11:16  wesommer
- *     Increment the nesting level only after we know we're connected.
- *
- * Revision 1.3  87/08/02  21:49:53  wesommer
- * Prevent recursive query call.
- * 
- * Revision 1.2  87/06/16  17:48:58  wesommer
- * Clean up memory allocation, indenting.
- * 
- * Revision 1.1  87/06/04  01:29:32  wesommer
- * Initial revision
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  * 
  */
 
@@ -24,6 +13,7 @@
 static char *rcsid_sms_query_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include "sms_private.h"
 
 /*
@@ -79,7 +69,8 @@ int sms_query_internal(argc, argv, callproc, callarg)
     CHECK_CONNECTED;
     level++;
 
-    params = &params_st;
+    params = &params_st; 
+    params->sms_version_no = sending_version_no;
     params->sms_procno = SMS_QUERY;
     params->sms_argc = argc;
     params->sms_argl = NULL;
@@ -99,7 +90,7 @@ int sms_query_internal(argc, argv, callproc, callarg)
                             (int (*)())NULL);
        queue_operation(_sms_conn, CON_INPUT, _sms_recv_op);
 
-       complete_operation(_sms_recv_op);
+       sms_complete_operation(_sms_recv_op);
        if (OP_STATUS(_sms_recv_op) != OP_COMPLETE) {
            sms_disconnect();
            status = SMS_ABORTED;
@@ -112,13 +103,3 @@ punt_1:
     level--;
     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 1.640805 seconds and 4 git commands to generate.