about summary refs log tree commit homepage
path: root/ext/unicorn_http/common_field_optimization.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-02 13:51:20 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-09 01:24:46 -0700
commit4dc2a9e95d115547b7c2680f198293d6e25658b3 (patch)
treec61a7c69368e52ecc81efe87d35409ab1fb9931e /ext/unicorn_http/common_field_optimization.h
parentca3fd8acb4bc3f5125a9f0f281951fb8f03778e5 (diff)
downloadunicorn-4dc2a9e95d115547b7c2680f198293d6e25658b3.tar.gz
http: find_common_field_value => find_common_field
The "_value" suffix was used to denote the return type, which is
redundandant as it is already known at compile time (being that
this is C and functions have explicit return types).  Furthurmore,
the "_value" is confusing since we're actually returning a "key"
when "value" is used in the context of "key-value" pairs.
Diffstat (limited to 'ext/unicorn_http/common_field_optimization.h')
-rw-r--r--ext/unicorn_http/common_field_optimization.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn_http/common_field_optimization.h b/ext/unicorn_http/common_field_optimization.h
index 978f0d7..adebe2c 100644
--- a/ext/unicorn_http/common_field_optimization.h
+++ b/ext/unicorn_http/common_field_optimization.h
@@ -81,7 +81,7 @@ static void init_common_fields(void)
 }
 
 /* this function is called for every header set */
-static VALUE find_common_field_value(const char *field, size_t flen)
+static VALUE find_common_field(const char *field, size_t flen)
 {
   int i;
   struct common_field *cf = common_http_fields;