From b5ff27899a3caf8a66be1d024e727ac166dd3b3f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Apr 2009 11:14:48 -0700 Subject: http11: minor cleanups in return types 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. --- ext/unicorn/http11/http11.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/unicorn/http11/http11.c') 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"); -- cgit v1.2.3-24-ge0c7