continuation.c revision 65f0aab98b20b5994a726ab90d355248bcddfffd
1/*
2 * continuation.c:
3 * This file is automatically generated; please do not edit it.
4 */
5
6#include <stdlib.h>
7
8static const char * const text[] = {
9	"New password was found in a dictionary of possible passwords and\ntherefore may be easily guessed. Please choose another password.\nSee the ovpasswd man page for help in choosing a good password.",
10    0
11};
12
13struct error_table {
14    char const * const * msgs;
15    long base;
16    int n_msgs;
17};
18struct et_list {
19    struct et_list *next;
20    const struct error_table * table;
21};
22extern struct et_list *_et_list;
23
24const struct error_table et_ovk_error_table = { text, 43787520L, 1 };
25
26static struct et_list link = { 0, 0 };
27
28void initialize_ovk_error_table_r(struct et_list **list);
29void initialize_ovk_error_table(void);
30
31void initialize_ovk_error_table(void) {
32    initialize_ovk_error_table_r(&_et_list);
33}
34
35/* For Heimdal compatibility */
36void initialize_ovk_error_table_r(struct et_list **list)
37{
38    struct et_list *et, **end;
39
40    for (end = list, et = *list; et; end = &et->next, et = et->next)
41        if (et->table->msgs == text)
42            return;
43    et = malloc(sizeof(struct et_list));
44    if (et == 0) {
45        if (!link.table)
46            et = &link;
47        else
48            return;
49    }
50    et->table = &et_ovk_error_table;
51    et->next = 0;
52    *end = et;
53}
54