diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-09-20 10:33:33 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-09-20 10:33:33 +0000 |
commit | acbc095fcc4368acf03ef240a817ecca3d940227 (patch) | |
tree | e9df8b708e45fa49fa5f7d77386edd67bafac89c /www/cherokee-devel/files/patch-cherokee-connection.c | |
parent | Jump the gun on the Varnish 1.0 release. (diff) |
- Update to 0.5.5
PR: ports/103228
Submitted by: chinsan <chinsan.tw@gmail.com>
Notes
Notes:
svn path=/head/; revision=173453
Diffstat (limited to 'www/cherokee-devel/files/patch-cherokee-connection.c')
-rw-r--r-- | www/cherokee-devel/files/patch-cherokee-connection.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/cherokee-devel/files/patch-cherokee-connection.c b/www/cherokee-devel/files/patch-cherokee-connection.c new file mode 100644 index 000000000000..2a36cb00bae4 --- /dev/null +++ b/www/cherokee-devel/files/patch-cherokee-connection.c @@ -0,0 +1,33 @@ +--- cherokee/connection.c.orig Wed Sep 20 21:17:53 2006 ++++ cherokee/connection.c Wed Sep 20 21:17:53 2006 +@@ -33,6 +33,12 @@ + #include <time.h> + #include <sys/types.h> + ++#undef fr_atoll ++#define fr_atoll(nptr) strtoll(nptr, (char **)NULL, 10) ++ ++#include <stdlib.h> ++#include <limits.h> ++ + #ifdef HAVE_PWD_H + # include <pwd.h> + #endif +@@ -1210,7 +1216,7 @@ + } + tmp[num_len] = '\0'; + if (num_len != 0) { +- cnt->range_start = atoll (tmp); ++ cnt->range_start = fr_atoll (tmp); + if (cnt->range_start < 0) { + return ret_error; + } +@@ -1236,7 +1242,7 @@ + num_len++; + } + tmp[num_len] = '\0'; +- cnt->range_end = atoll (tmp); ++ cnt->range_end = fr_atoll (tmp); + if (cnt->range_end < 1){ + return ret_error; + } |