X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/8defc06b8af7d99c7b46eaa73d5e9d7c8f044d52..refs/heads/origin:/lib/mr_init.c diff --git a/lib/mr_init.c b/lib/mr_init.c index 880e88c1..7a025684 100644 --- a/lib/mr_init.c +++ b/lib/mr_init.c @@ -1,33 +1,27 @@ -/* - * $Source$ - * $Author$ - * $Header$ +/* $Id$ * - * Copyright (C) 1987, 1990 by the Massachusetts Institute of Technology - * For copying and distribution information, please see the file - * . + * Initialize libmoira + * + * Copyright (C) 1987-1990 by the Massachusetts Institute of Technology + * For copying and distribution information, please see the file + * . */ -#ifndef lint -static char *rcsid_sms_init_c = "$Header$"; -#endif lint - #include +#include #include "mr_private.h" +RCSID("$Header$"); + int mr_inited = 0; -/* the reference to link_against_the_moira_version_of_gdb is to make - * sure that this is built with the proper libraries. - */ -mr_init() +void mr_init(void) { - extern int link_against_the_moira_version_of_gdb; - if (mr_inited) return; - - gdb_init(); - initialize_sms_error_table(); - initialize_krb_error_table(); - link_against_the_moira_version_of_gdb = 0; - mr_inited=1; + if (mr_inited) + return; + + initialize_sms_error_table(); + initialize_krb_error_table(); + initialize_ureg_error_table(); + mr_inited = 1; }