Skip to content

Commit 916c9ff

Browse files
authored
Merge pull request #202 from jburgess777/compile-fixes
Move variables to prevent duplicates
2 parents e25bfdb + a22065b commit 916c9ff

7 files changed

Lines changed: 3 additions & 6 deletions

File tree

includes/daemon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef struct {
4545

4646

4747

48-
struct request_queue * render_request_queue;
48+
extern struct request_queue * render_request_queue;
4949

5050
void statsRenderFinish(int z, long time);
5151
void request_exit(void);

includes/render_submit_queue.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ extern "C" {
55
#endif
66

77

8-
int work_complete;
9-
108
void enqueue(const char *xmlname, int x, int y, int z);
119
void spawn_workers(int num, const char *socketpath, int maxLoad);
1210
void wait_for_empty_queue(void);

src/daemon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static renderd_config config;
4949

5050
int noSlaveRenders;
5151

52+
struct request_queue * render_request_queue;
5253

5354
static const char *cmdStr(enum protoCmd c)
5455
{

src/render_expired.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ unsigned long long twopow[MAX_ZOOM];
8989
static int minZoom = 0;
9090
static int maxZoom = 18;
9191
static int verbose = 0;
92-
int work_complete;
9392
static int maxLoad = MAX_LOAD_OLD;
9493

9594
void display_rate(struct timeval start, struct timeval end, int num)

src/render_list.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ static int maxZoom = MAX_ZOOM;
4040
static int verbose = 0;
4141
static int maxLoad = MAX_LOAD_OLD;
4242

43-
int work_complete;
4443

4544
void display_rate(struct timeval start, struct timeval end, int num)
4645
{

src/render_old.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ static time_t planetTime;
4747
static struct timeval start, end;
4848

4949

50-
int work_complete;
5150

5251
void display_rate(struct timeval start, struct timeval end, int num)
5352
{

src/render_submit_queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ static struct qItem *qHead, *qTail;
4747

4848
static int no_workers;
4949
static pthread_t *workers;
50+
static int work_complete;
5051

5152
static void check_load(void)
5253
{

0 commit comments

Comments
 (0)