]> git.kaiwu.me - nginx.git/commitdiff
change variable name
authorIgor Sysoev <igor@sysoev.ru>
Wed, 16 Apr 2008 19:33:23 +0000 (19:33 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 16 Apr 2008 19:33:23 +0000 (19:33 +0000)
src/core/ngx_parse.c

index 7868245622a98cbcfbec17642fd5c7e37180ef5a..e8a6f13be51d5933063af523fd6e64edad8b75ba 100644 (file)
 ssize_t
 ngx_parse_size(ngx_str_t *line)
 {
-    u_char     last;
+    u_char     unit;
     size_t     len;
     ssize_t    size;
     ngx_int_t  scale;
 
     len = line->len;
-    last = line->data[len - 1];
+    unit = line->data[len - 1];
 
-    switch (last) {
+    switch (unit) {
     case 'K':
     case 'k':
         len--;
@@ -50,15 +50,15 @@ ngx_parse_size(ngx_str_t *line)
 off_t
 ngx_parse_offset(ngx_str_t *line)
 {
-    u_char     last;
+    u_char     unit;
     off_t      offset;
     size_t     len;
     ngx_int_t  scale;
 
     len = line->len;
-    last = line->data[len - 1];
+    unit = line->data[len - 1];
 
-    switch (last) {
+    switch (unit) {
     case 'K':
     case 'k':
         len--;