chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5bac290
)
Silence compiler warning
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 6 Dec 2008 21:47:04 +0000
(21:47 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 6 Dec 2008 21:47:04 +0000
(21:47 +0000)
server/server-queue.c
patch
|
blob
|
blame
|
history
diff --git
a/server/server-queue.c
b/server/server-queue.c
index e65477ce6349ff7007e0f02c4f8eeb250c96f7a8..88e772332513b12240193a1e643578ac4d972dc0 100644
(file)
--- a/
server/server-queue.c
+++ b/
server/server-queue.c
@@
-65,7
+65,7
@@
static void queue_do_read(struct queue_entry *head, const char *path) {
char *buffer;
FILE *fp;
struct queue_entry *q;
char *buffer;
FILE *fp;
struct queue_entry *q;
- int ver
sion
= 0;
+ int ver = 0;
if(!(fp = fopen(path, "r"))) {
if(errno == ENOENT)
if(!(fp = fopen(path, "r"))) {
if(errno == ENOENT)
@@
-76,12
+76,12
@@
static void queue_do_read(struct queue_entry *head, const char *path) {
while(!inputline(path, fp, &buffer, '\n')) {
if(buffer[0] == '#') {
/* Version indicator */
while(!inputline(path, fp, &buffer, '\n')) {
if(buffer[0] == '#') {
/* Version indicator */
- ver
sion
= atoi(buffer + 1);
+ ver = atoi(buffer + 1);
continue;
}
q = xmalloc(sizeof *q);
queue_unmarshall(q, buffer, queue_read_error, (void *)path);
continue;
}
q = xmalloc(sizeof *q);
queue_unmarshall(q, buffer, queue_read_error, (void *)path);
- if(ver
sion
< 1) {
+ if(ver < 1) {
/* Fix up origin field as best we can; will be wrong in some cases but
* hopefully not too horribly so. */
q->origin = q->submitter ? origin_picked : origin_random;
/* Fix up origin field as best we can; will be wrong in some cases but
* hopefully not too horribly so. */
q->origin = q->submitter ? origin_picked : origin_random;