projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
bb1dde6
)
be strict about port numbers being in in_port_t not uint32_t
author
Stewart Smith
<stewart@flamingspork.com>
Sun, 10 Jan 2010 23:40:33 +0000
(10:40 +1100)
committer
Stewart Smith
<stewart@flamingspork.com>
Sun, 10 Jan 2010 23:40:33 +0000
(10:40 +1100)
libmemcached/parse.c
patch
|
blob
|
history
diff --git
a/libmemcached/parse.c
b/libmemcached/parse.c
index 73cc9dfec7d79ef461f71c6a61621bb408c783fe..6675b1a3c2a54bfe44ec74d3769ddd0e40dce6c7 100644
(file)
--- a/
libmemcached/parse.c
+++ b/
libmemcached/parse.c
@@
-10,7
+10,7
@@
memcached_server_st *memcached_servers_parse(const char *server_strings)
{
char *string;
-
uint32
_t port;
+
in_port
_t port;
uint32_t weight;
const char *begin_ptr;
const char *end_ptr;
@@
-52,7
+52,7
@@
memcached_server_st *memcached_servers_parse(const char *server_strings)
ptr++;
- port= (
uint32
_t) strtoul(ptr, (char **)NULL, 10);
+ port= (
in_port
_t) strtoul(ptr, (char **)NULL, 10);
ptr2= index(ptr, ' ');
if (! ptr2)