1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

about_protocol_handler: Don't define len if CONFIG_SMALL.

It is not used if CONFIG_SMALL is defined, and GCC complained about this.
With -Werror added by --enable-debug, the whole build failed.
This commit is contained in:
Kalle Olavi Niemitalo 2006-12-10 17:16:38 +02:00 committed by Kalle Olavi Niemitalo
parent a46afea662
commit 3988ab97cc

View File

@ -94,13 +94,12 @@ about_protocol_handler(struct connection *conn)
/* Only do this the first time */ /* Only do this the first time */
if (cached && !cached->content_type) { if (cached && !cached->content_type) {
int len = 0;
#ifndef CONFIG_SMALL #ifndef CONFIG_SMALL
{ {
const struct about_page *page = about_pages; const struct about_page *page = about_pages;
for (; page->name; page++) { for (; page->name; page++) {
int len;
unsigned char *str; unsigned char *str;
if (strcmp(conn->uri->data, page->name)) if (strcmp(conn->uri->data, page->name))