chiark
/
gitweb
/
~ian
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8adda
)
cleanup: Remove pointless double assignment
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 19 Jun 2011 08:08:17 +0000
(09:08 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2011 11:07:27 +0000
(12:07 +0100)
-Wsequence-point doesn't like it.
Signed-off-by: Richard Kettlewell <richard@greenend.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
udp.c
patch
|
blob
|
history
diff --git
a/udp.c
b/udp.c
index 4c393cd603cf397499c206632e2061c9b1947ef9..7ff4d5fd18f84e5ade3487701484124c55767c9e 100644
(file)
--- a/
udp.c
+++ b/
udp.c
@@
-272,7
+272,7
@@
static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context,
d=i->data.dict;
j=dict_find_item(d,"address",False,"udp",st->loc);
- st->addr=j?st
->addr=st
ring_item_to_ipaddr(j, "udp"):INADDR_ANY;
+ st->addr=j?string_item_to_ipaddr(j, "udp"):INADDR_ANY;
st->port=dict_read_number(d,"port",True,"udp",st->loc,0);
st->rbuf=find_cl_if(d,"buffer",CL_BUFFER,True,"udp",st->loc);
st->authbind=dict_read_string(d,"authbind",False,"udp",st->loc);