httpd: sanitize indentation
This commit is contained in:
parent
a552eeb498
commit
8b8c75e6ab
@ -133,8 +133,7 @@ typedef struct HT_ACCESS_IP {
|
||||
struct HT_ACCESS_IP *next;
|
||||
} Htaccess_IP;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char buf[MAX_MEMORY_BUFF];
|
||||
|
||||
USE_FEATURE_HTTPD_BASIC_AUTH(const char *realm;)
|
||||
@ -700,8 +699,7 @@ static char *decodeString(char *orig, int flag_plus_to_space)
|
||||
char *string = orig;
|
||||
char *ptr = string;
|
||||
|
||||
while (*ptr)
|
||||
{
|
||||
while (*ptr) {
|
||||
if (*ptr == '+' && flag_plus_to_space) { *string++ = ' '; ptr++; }
|
||||
else if (*ptr != '%') *string++ = *ptr++;
|
||||
else {
|
||||
@ -1463,8 +1461,7 @@ set_remoteuser_var:
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void
|
||||
handle_sigalrm( int sig )
|
||||
static void handle_sigalrm(int sig)
|
||||
{
|
||||
sendHeaders(HTTP_REQUEST_TIMEOUT);
|
||||
config->alarm_signaled = sig;
|
||||
@ -1868,8 +1865,7 @@ static void sighup_handler(int sig)
|
||||
/* set and reset */
|
||||
struct sigaction sa;
|
||||
|
||||
parse_conf(default_path_httpd_conf,
|
||||
sig == SIGHUP ? SIGNALED_PARSE : FIRST_PARSE);
|
||||
parse_conf(default_path_httpd_conf, sig == SIGHUP ? SIGNALED_PARSE : FIRST_PARSE);
|
||||
sa.sa_handler = sighup_handler;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = SA_RESTART;
|
||||
|
Loading…
Reference in New Issue
Block a user