A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vision5/ngx_devel_kit/commit/bc97eea6d900013a8cd26b1117491dc513450d27 below:

added trailing newlines to ndk.c and ndk_upstream_list.c because they… · vision5/ngx_devel_kit@bc97eea · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+15

-13

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+15

-13

lines changed Original file line number Diff line number Diff line change

@@ -1,4 +1,4 @@

1 - 1 + 2 2

/*

3 3

* 2010 (C) Marcus Clyne

4 4

*/

@@ -52,7 +52,7 @@ static void ndk_http_exit_master (ngx_cycle_t *cycle);

52 52 53 53 54 54

ngx_http_module_t ndk_http_module_ctx = {

55 - 55 + 56 56

#if (NDK_HTTP_PRE_CONFIG)

57 57

ndk_http_preconfiguration,

58 58

#else

@@ -125,7 +125,7 @@ ngx_module_t ndk_http_module = {

125 125 126 126

NULL, // init thread

127 127

NULL, // exit thread

128 - 128 + 129 129

#if (NDK_HTTP_EXIT_PROCESS)

130 130

ndk_http_exit_process,

131 131

#else

@@ -146,9 +146,10 @@ static void *

146 146

ndk_http_create_main_conf (ngx_conf_t *cf)

147 147

{

148 148

ndk_http_main_conf_t *mcf;

149 - 149 + 150 150

ndk_pcallocp_rce (mcf, cf->pool);

151 - 151 + 152 152

return mcf;

153 153

}

154 -

#endif

154 +

#endif

155 + Original file line number Diff line number Diff line change

@@ -69,7 +69,7 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

69 69

ndk_http_main_conf_t *mcf;

70 70 71 71

mcf = ngx_http_conf_get_module_main_conf (cf, ndk_http_module);

72 - 72 + 73 73

ula = mcf->upstreams;

74 74 75 75

// create array of upstream lists it doesn't already exist

@@ -94,7 +94,7 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

94 94 95 95

for ( ; ul<ule; ul++) {

96 96 97 -

if (ul->name.len == value->len &&

97 +

if (ul->name.len == value->len &&

98 98

ngx_strncasecmp (ul->name.data, value->data, value->len) == 0) {

99 99 100 100

ngx_conf_log_error (NGX_LOG_EMERG, cf, 0,

@@ -148,7 +148,7 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

148 148

bucket = ngx_palloc (cf->pool, buckets * sizeof (ngx_str_t **));

149 149

if (bucket == NULL)

150 150

return NGX_CONF_ERROR;

151 - 151 + 152 152

ul->elts = bucket;

153 153

ul->nelts = buckets;

154 154

@@ -177,15 +177,15 @@ ndk_upstream_list (ngx_conf_t *cf, ngx_command_t *cmd, void *conf)

177 177

}

178 178 179 179

return NGX_CONF_OK;

180 -

}

180 +

}

181 181 182 182 183 183

ndk_upstream_list_t *

184 184

ndk_get_upstream_list (ndk_http_main_conf_t *mcf, u_char *data, size_t len)

185 185

{

186 -

ndk_upstream_list_t *ul, *ule;

186 +

ndk_upstream_list_t *ul, *ule;

187 187

ngx_array_t *ua = mcf->upstreams;

188 - 188 + 189 189

if (ua == NULL) {

190 190

return NULL;

191 191

}

@@ -201,4 +201,5 @@ ndk_get_upstream_list (ndk_http_main_conf_t *mcf, u_char *data, size_t len)

201 201

}

202 202 203 203

return NULL;

204 -

}

204 +

}

205 +

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4