]> andersk Git - moira.git/blobdiff - lib/mr_init.c
fix unresolved reference to access_snt() by creating
[moira.git] / lib / mr_init.c
index a15a1da2fc0879488e2d165c90bb330e9fe61615..880e88c1a7359f1788a4c359e8b00008db92ecf6 100644 (file)
@@ -3,28 +3,31 @@
  *     $Author$
  *     $Header$
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- *     $Log$
- *     Revision 1.1  1987-05-31 22:06:40  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_init_c = "$Header$";
 #endif lint
 
-#include "sms_private.h"
+#include <mit-copyright.h>
+#include "mr_private.h"
 
-int sms_inited = 0;
+int mr_inited = 0;
 
-sms_init()
+/* the reference to link_against_the_moira_version_of_gdb is to make
+ * sure that this is built with the proper libraries.
+ */
+mr_init()
 {
-       if (sms_inited) return;
+       extern int link_against_the_moira_version_of_gdb;
+       if (mr_inited) return;
        
        gdb_init();
-       init_sms_err_tbl();
-       init_krb_err_tbl();
-       sms_inited=1;
+       initialize_sms_error_table();
+       initialize_krb_error_table();
+       link_against_the_moira_version_of_gdb = 0;
+       mr_inited=1;
 }
This page took 0.135107 seconds and 4 git commands to generate.