source: trunk/third/moira/lib/mr_init.c @ 24319

Revision 24319, 814 bytes checked in by broder, 14 years ago (diff)
New Moira snapshot from SVN.
Line 
1/* $Id: mr_init.c 3956 2010-01-05 20:56:56Z zacheiss $
2 *
3 * Initialize libmoira
4 *
5 * Copyright (C) 1987-1990 by the Massachusetts Institute of Technology
6 * For copying and distribution information, please see the file
7 * <mit-copyright.h>.
8 */
9
10#include <mit-copyright.h>
11#include <moira.h>
12#include "mr_private.h"
13
14RCSID("$HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/lib/mr_init.c $ $Id: mr_init.c 3956 2010-01-05 20:56:56Z zacheiss $");
15
16int mr_inited = 0;
17
18void mr_init(void)
19{
20  if (mr_inited)
21    return;
22
23#if defined(__APPLE__) && defined(__MACH__)
24  add_error_table(&et_sms_error_table);
25  add_error_table(&et_krb_error_table);
26  add_error_table(&et_ureg_error_table);
27#else
28  initialize_sms_error_table();
29  initialize_krb_error_table();
30  initialize_ureg_error_table();
31#endif
32
33  mr_inited = 1;
34}
Note: See TracBrowser for help on using the repository browser.