1 Submitted By: Pierre Labastie <pierre dot labastie at neuf dot fr>
3 Initial Package Version: 1.1.15
4 Upstream Status: Unknown (no development since 2011)
5 Origin: self, adapted from opensuse
6 Description: Fixes building with GCC 10
8 --- jfsutils-1.1.15.old/fscklog/display.c 2005-11-22 21:43:54.000000000 +0100
9 +++ jfsutils-1.1.15.new/fscklog/display.c 2020-05-21 18:15:13.410617620 +0200
11 * output: fsck extracted service log I/O buffer
14 -char xchklog_buffer[XCHKLOG_BUFSIZE];
15 +static char xchklog_buffer[XCHKLOG_BUFSIZE];
17 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
19 diff -ur --exclude '*.o' --exclude '*.a' jfsutils-1.1.15.old/libfs/logredo.c jfsutils-1.1.15.new/libfs/logredo.c
20 --- jfsutils-1.1.15.old/libfs/logredo.c 2005-11-22 21:43:55.000000000 +0100
21 +++ jfsutils-1.1.15.new/libfs/logredo.c 2020-05-21 18:19:44.927703271 +0200
23 * S T U F F F O R T H E L O G
26 -struct logsuper logsup; /* log super block */
27 -int32_t numdoblk; /* number of do blocks used */
28 -int32_t numnodofile; /* number of nodo file blocks used */
29 +static struct logsuper logsup; /* log super block */
30 +static int32_t numdoblk; /* number of do blocks used */
31 +static int32_t numnodofile; /* number of nodo file blocks used */
32 int32_t numExtDtPg = 0; /* number of extended dtpage blocks used */
38 /* buffer header table */
40 +static struct bufhdr {
41 int16_t next; /* 2: next on free/lru list */
42 int16_t prev; /* 2: previous on free/lru list */
43 int16_t hnext; /* 2: next on hash chain */
45 } bufhdr[NBUFPOOL]; /* (24) */
49 +static struct bufpool {
51 } buffer[NBUFPOOL - 1];
55 * log has its own 4 page buffer pool.
57 -uint8_t afterdata[LOGPSIZE * 2]; /* buffer to read in redopage data */
58 +static uint8_t afterdata[LOGPSIZE * 2]; /* buffer to read in redopage data */
63 -caddr_t prog; /* Program name */
64 -int32_t mntcnt, bufsize;
66 -int32_t retcode; /* return code from logredo */
67 +static caddr_t prog; /* Program name */
68 +extern int32_t mntcnt;
69 +static int32_t bufsize;
70 +static char *mntinfo;
71 +static int32_t retcode; /* return code from logredo */
72 int end_of_transaction = 0;