]>
Commit | Line | Data |
---|---|---|
6144fe0b JR |
1 | diff -u lessfs-1.7.0/lib_cfg.c lessfs-1.7.0-gcc10/lib_cfg.c |
2 | --- lessfs-1.7.0/lib_cfg.c 2011-09-30 20:13:08.000000000 +0200 | |
3 | +++ lessfs-1.7.0-gcc10/lib_cfg.c 2021-10-17 21:12:40.750623419 +0200 | |
4 | @@ -34,6 +34,8 @@ | |
5 | #include "lib_str.h" | |
6 | #include "retcodes.h" | |
7 | ||
8 | +struct configdata *config; | |
9 | + | |
10 | int r_env_cfg(char *configfile) | |
11 | { | |
12 | FILE *config; | |
13 | diff -u lessfs-1.7.0/lib_cfg.h lessfs-1.7.0-gcc10/lib_cfg.h | |
14 | --- lessfs-1.7.0/lib_cfg.h 2012-04-21 18:09:54.000000000 +0200 | |
15 | +++ lessfs-1.7.0-gcc10/lib_cfg.h 2021-10-17 21:12:31.999872984 +0200 | |
16 | @@ -88,7 +88,7 @@ | |
17 | // Counter is increase by normal ops, decreased by truncation. | |
18 | // (background) Truncation will therefore become slower when other tasks are running. | |
19 | }; | |
20 | -struct configdata *config; | |
21 | +extern struct configdata *config; | |
22 | ||
23 | int read_s_cfg(char *cfgfile, char *value, int size); | |
24 | int read_m_cfg(char *cfgfile, char *value, char *value2, int size); | |
25 | diff -u lessfs-1.7.0/lib_tc.c lessfs-1.7.0-gcc10/lib_tc.c | |
26 | --- lessfs-1.7.0/lib_tc.c 2013-11-16 05:09:05.000000000 +0100 | |
27 | +++ lessfs-1.7.0-gcc10/lib_tc.c 2021-10-17 21:15:33.016360983 +0200 | |
28 | @@ -74,14 +74,14 @@ | |
29 | extern int max_threads; | |
30 | extern char *passwd; | |
31 | ||
32 | -TCHDB *dbb; | |
33 | -TCHDB *dbu; | |
34 | -TCHDB *dbp; | |
35 | -TCBDB *dbl; | |
36 | -TCHDB *dbs; | |
37 | -TCHDB *dbdta; | |
38 | -TCBDB *dbdirent; | |
39 | -TCBDB *freelist; | |
40 | +extern TCHDB *dbb; | |
41 | +extern TCHDB *dbu; | |
42 | +extern TCHDB *dbp; | |
43 | +extern TCBDB *dbl; | |
44 | +extern TCHDB *dbs; | |
45 | +extern TCHDB *dbdta; | |
46 | +extern TCBDB *dbdirent; | |
47 | +extern TCBDB *freelist; | |
48 | ||
49 | extern TCTREE *workqtree; // Used to buffer incoming data (writes) | |
50 | extern TCTREE *readcachetree; // Used to cache chunks of data that are likely to be read | |
51 | @@ -96,9 +96,9 @@ | |
52 | extern unsigned long long nextoffset; | |
53 | int written = 0; | |
54 | ||
55 | -const char *offset_lockedby; | |
56 | +extern const char *offset_lockedby; | |
57 | ||
58 | -u_int32_t db_flags, env_flags; | |
59 | +extern u_int32_t db_flags, env_flags; | |
60 | ||
61 | int btree_test_transaction(TCBDB * bdb) | |
62 | { |