diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:48 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:32 -0700 |
commit | b5ff27899a3caf8a66be1d024e727ac166dd3b3f (patch) | |
tree | a0902589a3a2a0e2f88e3ba38af6c8b404cf13a2 /ext/unicorn/http11/http11.c | |
parent | cd0c49fbc22aa4b13f8c11917d8fd01e9c31eb2e (diff) | |
download | unicorn-b5ff27899a3caf8a66be1d024e727ac166dd3b3f.tar.gz |
While we're at it, replace a bunch of zero assignments with a memset to avoid forgetting a struct element in case we change the struct.
Diffstat (limited to 'ext/unicorn/http11/http11.c')
-rw-r--r-- | ext/unicorn/http11/http11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c index 3ca9ca1..f8ee151 100644 --- a/ext/unicorn/http11/http11.c +++ b/ext/unicorn/http11/http11.c @@ -169,7 +169,6 @@ static void http_field(void *data, const char *field, VALIDATE_MAX_LENGTH(vlen, FIELD_VALUE); v = rb_str_new(value, vlen); - f = find_common_field_value(field, flen); if (f == Qnil) { @@ -388,9 +387,8 @@ static VALUE HttpParser_execute(VALUE self, VALUE req_hash, VALUE data) rb_raise(eHttpParserError, "Requested start is after data buffer end."); } -void Init_http11() +void Init_http11(void) { - mUnicorn = rb_define_module("Unicorn"); DEF_GLOBAL(rack_url_scheme, "rack.url_scheme"); |