]> andersk Git - moira.git/blobdiff - lib/mr_access.c
punt cistrcmp(); update FS types
[moira.git] / lib / mr_access.c
index c795479a1957788a6fc5797ef08fa290f2cd0aca..a6a24f9b2321530f4f94be4edfa24cdd1fbabc7e 100644 (file)
@@ -3,27 +3,22 @@
  *     $Author$
  *     $Header$
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- *     $Log$
- *     Revision 1.2  1987-08-02 21:48:35  wesommer
- *     Got direction of test incorrect.
- *
- * Revision 1.1  87/06/23  16:13:00  wesommer
- * Initial revision
- * 
+ *     Copyright (C) 1987, 1990 by the Massachusetts Institute of Technology
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  */
 
 #ifndef lint
 static char *rcsid_sms_access_c = "$Header$";
 #endif lint
 
-#include "sms_private.h"
+#include <mit-copyright.h>
+#include "mr_private.h"
 
 /*
  * Check access to a named query.
  */
-int sms_access(name, argc, argv)
+int mr_access(name, argc, argv)
     char *name;                        /* Query name */
     int argc;                  /* Arg count */
     char **argv;               /* Args */
@@ -32,7 +27,7 @@ int sms_access(name, argc, argv)
     register int status = 0;
     nargv[0] = name;
     bcopy((char *)argv, (char *)(nargv+1), sizeof(char *) * argc);
-    status = sms_access_internal(argc+1, nargv);
+    status = mr_access_internal(argc+1, nargv);
     free(nargv);
     return status;
 }
@@ -40,38 +35,28 @@ int sms_access(name, argc, argv)
  * Check access to a named query, where the query name is argv[0]
  * and the arguments are the rest of argv[].
  */
-int sms_access_internal(argc, argv)
+int mr_access_internal(argc, argv)
     int argc;                  /* Arg count */
     char **argv;               /* Args */
 {
     int status;
-    sms_params params_st;
-    register sms_params *params = NULL;
-    sms_params *reply = NULL;
+    mr_params params_st;
+    register mr_params *params = NULL;
+    mr_params *reply = NULL;
     
     CHECK_CONNECTED;
 
     params = &params_st;
-    params->sms_procno = SMS_ACCESS;
-    params->sms_argc = argc;
-    params->sms_argl = NULL;
-    params->sms_argv = argv;
+    params->mr_version_no = sending_version_no;
+    params->mr_procno = MR_ACCESS;
+    params->mr_argc = argc;
+    params->mr_argl = NULL;
+    params->mr_argv = argv;
        
-    if ((status = sms_do_call(params, &reply)) == 0)
-       status = reply->sms_status;
+    if ((status = mr_do_call(params, &reply)) == 0)
+       status = reply->mr_status;
 
-    sms_destroy_reply(reply);
+    mr_destroy_reply(reply);
 
     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.311557 seconds and 4 git commands to generate.