com php-src: code standard: main/rfc1867.c

From: Date: Fri, 15 May 2015 16:19:43 +0000
Subject: com php-src: code standard: main/rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86775@lists.php.net to get a copy of this message
Commit: 249d4c7fdb00d583d4e2b41381df94b62bb16f05 Author: Xinchen Hui <laruence@php.net> Sat, 16 May 2015 00:19:43 +0800 Parents: 7cead987bd5179506225afa696abb43d722d1253 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=249d4c7fdb00d583d4e2b41381df94b62bb16f05 Log: code standard Changed paths: M main/rfc1867.c Diff: diff --git a/main/rfc1867.c b/main/rfc1867.c index 3c1bfa6..30457f3 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -420,8 +420,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) /* get lines of text, or CRLF_CRLF */ - while( (line = get_line(self)) && line[0] != '\0' ) - { + while ((line = get_line(self)) && line[0] != '\0') { /* add header to table */ char *value = NULL; @@ -435,7 +434,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) } if (value) { - if(buf_value.c && key) { + if (buf_value.c && key) { /* new entry, add the old one to the list */ smart_string_0(&buf_value); entry.key = key; @@ -446,7 +445,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) } *value = '\0'; - do { value++; } while(isspace(*value)); + do { value++; } while (isspace(*value)); key = estrdup(line); smart_string_appends(&buf_value, value); @@ -457,7 +456,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header) } } - if(buf_value.c && key) { + if (buf_value.c && key) { /* add the last one to the list */ smart_string_0(&buf_value); entry.key = key;

« previous php.cvs (#86775) next »