chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc1588
)
server/admin.c: Fix `=' vs `==' error in assertion.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 May 2020 15:26:08 +0000
(16:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 May 2020 15:26:08 +0000
(16:26 +0100)
Oops. Well, at least this /shouldn't/ have done anything bad... I
guess GCC has only just started warning about this because older
versions of <assert.h> provide the necessary parentheses already.
server/admin.c
patch
|
blob
|
blame
|
history
diff --git
a/server/admin.c
b/server/admin.c
index eb965c1c9b2bf1c63e46d9a7aa0a39666cb37a72..3076d931ad8e7787fa1c8260e06a0f3c46cda653 100644
(file)
--- a/
server/admin.c
+++ b/
server/admin.c
@@
-897,7
+897,7
@@
static void a_jobdestroy(admin_svcop *svc)
IF_TRACING(T_ADMIN, {
trace(T_ADMIN, "admin: destroying job %s (%u)", a_jobidencode(svc), i);
})
- assert(j->v[i].u.op = svc);
+ assert(j->v[i].u.op =
=
svc);
j->v[i].u.next = j->free;
j->v[i].seq++;
j->free = i;