Skip to content

Commit 5300981

Browse files
committed
fix ws (patch by Jerome Loyet)
1 parent 8037ab0 commit 5300981

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

sapi/fpm/fpm/fastcgi.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ typedef struct _fcgi_begin_request_rec {
7676
} fcgi_begin_request_rec;
7777

7878
typedef struct _fcgi_end_request {
79-
unsigned char appStatusB3;
80-
unsigned char appStatusB2;
81-
unsigned char appStatusB1;
82-
unsigned char appStatusB0;
83-
unsigned char protocolStatus;
84-
unsigned char reserved[3];
79+
unsigned char appStatusB3;
80+
unsigned char appStatusB2;
81+
unsigned char appStatusB1;
82+
unsigned char appStatusB0;
83+
unsigned char protocolStatus;
84+
unsigned char reserved[3];
8585
} fcgi_end_request;
8686

8787
typedef struct _fcgi_end_request_rec {

sapi/fpm/fpm/fpm_atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static inline atomic_uint_t atomic_cmp_set(atomic_t *lock, atomic_uint_t old, at
3535
__asm__ volatile ( "lock;" "cmpxchgl %3, %1;" "sete %0;" :
3636
"=a" (res) : "m" (*lock), "a" (old), "r" (set) : "memory");
3737

38-
return res;
38+
return res;
3939
}
4040
/* }}} */
4141

sapi/fpm/fpm/fpm_main.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static const opt_struct OPTIONS[] = {
164164
{'v', 0, "version"},
165165
{'y', 1, "fpm-config"},
166166
{'z', 1, "zend-extension"},
167-
{'T', 1, "timing"},
167+
{'T', 1, "timing"},
168168
{'-', 0, NULL} /* end of args */
169169
};
170170

@@ -348,8 +348,8 @@ static void sapi_cgibin_flush(void *server_context)
348348
#define SAPI_CGI_MAX_HEADER_LENGTH 1024
349349

350350
typedef struct _http_error {
351-
int code;
352-
const char* msg;
351+
int code;
352+
const char* msg;
353353
} http_error;
354354

355355
static const http_error http_error_codes[] = {
@@ -989,8 +989,8 @@ static void php_cgi_usage(char *argv0)
989989
" -s Display colour syntax highlighted source.\n"
990990
" -v Version number\n"
991991
" -w Display source with stripped comments and whitespace.\n"
992-
" -y, --fpm-config <file>\n"
993-
" Specify alternative path to FastCGI process manager config file.\n"
992+
" -y, --fpm-config <file>\n"
993+
" Specify alternative path to FastCGI process manager config file.\n"
994994
" -z <file> Load Zend extension <file>.\n"
995995
" -T <count> Measure execution time of script repeated <count> times.\n",
996996
prog, prog);
@@ -1166,8 +1166,8 @@ static void init_request_info(TSRMLS_D)
11661166
}
11671167

11681168
if (env_path_translated != NULL && env_redirect_url != NULL &&
1169-
env_path_translated != script_path_translated &&
1170-
strcmp(env_path_translated, script_path_translated) != 0) {
1169+
env_path_translated != script_path_translated &&
1170+
strcmp(env_path_translated, script_path_translated) != 0) {
11711171
/*
11721172
* pretty much apache specific. If we have a redirect_url
11731173
* then our script_filename and script_name point to the
@@ -1688,9 +1688,9 @@ int main(int argc, char *argv[])
16881688
#else
16891689
php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2009 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
16901690
#endif
1691-
php_request_shutdown((void *) 0);
1692-
exit_status = 0;
1693-
goto out;
1691+
php_request_shutdown((void *) 0);
1692+
exit_status = 0;
1693+
goto out;
16941694
}
16951695
}
16961696
php_optind = orig_optind;

0 commit comments

Comments
 (0)