]> andersk Git - moira.git/blobdiff - server/qsubs.c
Fix another freeing-memory-we-didn't-malloc bug in AddMachine. This
[moira.git] / server / qsubs.c
index d1a0c0e3179a49def1b62f1e5c5edc1ac3f19e80..d3ea74438d22109c30cf49d63ef5483730e6bbb0 100644 (file)
@@ -14,7 +14,8 @@ static char *rcsid_qsubs_c = "$Header$";
 #endif lint
 
 #include <mit-copyright.h>
-#include <sms.h>
+#include <moira.h>
+#include "mr_server.h"
 #include "query.h"
 
 #ifdef MULTIPROTOCOLS
@@ -34,7 +35,7 @@ get_query_by_name(name, version)
     register int i;
 
 #ifdef MULTIPROTOCOLS
-    if (version == SMS_VERSION_1) {
+    if (version == MR_VERSION_1) {
        q = Queries1;
        i = QueryCount1;
     } else {
@@ -60,10 +61,10 @@ get_query_by_name(name, version)
     return((struct query *)0);
 }
 
-list_queries(version, action, actarg)
+void list_queries(version, action, actarg)
     int version;
     int (*action)();
-    int actarg;
+    char *actarg;
 {
   register struct query *q;
   register int i;
@@ -78,7 +79,7 @@ list_queries(version, action, actarg)
   int qcmp();
 
 #ifdef MULTIPROTOCOLS
-  if (version == SMS_VERSION_1) {
+  if (version == MR_VERSION_1) {
       count = QueryCount1;
       if (squeries1 == (struct query **)0) {
          sq = (struct query **)malloc(count * sizeof (struct query *));
@@ -118,10 +119,10 @@ list_queries(version, action, actarg)
   (*action)(1, &qnp, actarg);
 }
 
-help_query(q, action, actarg)
+void help_query(q, action, actarg)
     register struct query *q;
     int (*action)();
-    int actarg;
+    char *actarg;
 {
     register int argcount;
     register int i;
This page took 0.036944 seconds and 4 git commands to generate.