Skip to content

Commit d618253

Browse files
committed
cleanup var scopes
1 parent 2c5c944 commit d618253

6 files changed

Lines changed: 7 additions & 20 deletions

File tree

lib/misc/lhp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,11 +1304,6 @@ lws_lhp_parse(lhp_ctx_t *ctx, const uint8_t **buf, size_t *len)
13041304
ps->cb(ctx, LHPCB_FAILED);
13051305
return LWS_SRET_FATAL;
13061306
}
1307-
if (c == '=') {
1308-
// !!! lwsl_err("%s: equal\n", __func__);
1309-
//ps->cb(ctx, LHPCB_FAILED);
1310-
//return LWS_SRET_FATAL;
1311-
}
13121307
break;
13131308
}
13141309
if (c == '/') {

minimal-examples-lowlevel/api-tests/api-test-lhp-dlo/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ LWS_SS_USER_TYPEDEF
2525
lws_display_render_state_t *rs;
2626
} htmlss_t;
2727

28-
static lws_display_render_state_t rs;
28+
static lws_display_render_state_t drs;
2929

3030
static const uint8_t fira_c_r_10[] = {
3131
#include "../contrib/mcufont/fonts/FiraSansCondensed-Regular10.mcufont.h"
@@ -224,11 +224,11 @@ main(int argc, const char **argv)
224224
lws_font_register(cx, fira_c_b_16, sizeof(fira_c_b_16));
225225
lws_font_register(cx, fira_c_b_20, sizeof(fira_c_b_20));
226226

227-
rs.ic = ⁣
227+
drs.ic = ⁣
228228

229229
/* create the SS to the html using the URL on argv[1] */
230230

231-
if (lws_lhp_ss_browse(cx, &rs, argv[1], render)) {
231+
if (lws_lhp_ss_browse(cx, &drs, argv[1], render)) {
232232
lws_context_destroy(cx);
233233
goto bail;
234234
}

minimal-examples-lowlevel/api-tests/api-test-ssjpeg/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LWS_SS_USER_TYPEDEF
2323
lws_jpeg_t *j;
2424
} myss_t;
2525

26-
static lws_dlo_rasterize_t rast;
26+
static lws_dlo_rasterize_t dlo_rasterize;
2727
struct lws_context *cx;
2828
static int fdout = 1, result = 1;
2929

@@ -165,7 +165,7 @@ myss_state(void *userobj, void *sh, lws_ss_constate_t state,
165165
if (r)
166166
return r;
167167

168-
lws_dll2_add_tail(&m->flow.list, &rast.owner);
168+
lws_dll2_add_tail(&m->flow.list, &dlo_rasterize.owner);
169169
break;
170170

171171
case LWSSSCS_DESTROYING:

minimal-examples-lowlevel/http-server/minimal-http-server-eventlib-custom/minimal-http-server.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ custom_poll_run(custom_poll_ctx_t *cpcx)
161161
/* lws feels something bad happened, but
162162
* the outer application may not care */
163163
continue;
164-
if (!m) {
165-
/* check if it is an fd owned by the
166-
* application */
167-
}
168164
}
169165
}
170166

minimal-examples-lowlevel/http-server/minimal-http-server-eventlib-demos/mount-origin/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ var BrowserDetect = {
155155

156156
};
157157

158-
var pos = 0;
159-
160158
function get_appropriate_ws_url(extra_url)
161159
{
162160
var pcol;
@@ -231,7 +229,7 @@ function ws_open_dumb_increment()
231229
}
232230
}
233231

234-
var socket_status, jso, s;
232+
var socket_status, jso;
235233

236234
function ws_open_status()
237235
{

test-apps/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ var BrowserDetect = {
155155

156156
};
157157

158-
var pos = 0;
159-
160158
function get_appropriate_ws_url(extra_url)
161159
{
162160
var pcol;
@@ -231,7 +229,7 @@ function ws_open_dumb_increment()
231229
}
232230
}
233231

234-
var socket_status, jso, s;
232+
var socket_status, jso;
235233

236234
function ws_open_status()
237235
{

0 commit comments

Comments
 (0)