1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00

Fix trailing whitespaces

This commit is contained in:
Laurent MONIN 2007-04-26 15:02:04 +02:00 committed by Laurent MONIN
parent 132e06f136
commit 0b98c5051b
13 changed files with 21 additions and 21 deletions

View File

@ -836,7 +836,7 @@ save_cookies(struct terminal *term) {
time_t now;
#ifdef CONFIG_SMALL
# define CANNOT_SAVE_COOKIES(flags, message)
# define CANNOT_SAVE_COOKIES(flags, message)
#else
# define CANNOT_SAVE_COOKIES(flags, message) \
do { \
@ -895,7 +895,7 @@ save_cookies(struct terminal *term) {
CANNOT_SAVE_COOKIES(MSGBOX_NO_TEXT_INTL,
secsave_strerror(secsave_errno, term));
}
#undef CANNOT_SAVE_COOKIES
#undef CANNOT_SAVE_COOKIES
}
static void

View File

@ -123,7 +123,7 @@ html_quote_close(struct html_context *html_context, unsigned char *a,
unsigned char **xxx5)
{
unsigned char *q;
if (html_context->quote_level > 0)
html_context->quote_level--;

View File

@ -615,7 +615,7 @@ count_newline_entities(const unsigned char *html, const unsigned char *eof,
if (peek == eof || *peek != ';')
break;
++peek;
if (this_is_cr || !prev_was_cr)
++newlines;
prev_was_cr = this_is_cr;

View File

@ -161,7 +161,7 @@ realloc_line(struct html_context *html_context, struct document *document,
line = &document->data[y];
orig_length = line->length;
if (length < orig_length)
return orig_length;

View File

@ -23,7 +23,7 @@ struct ecmascript_interpreter {
/* The code evaluated by setTimeout() */
struct string code;
time_t exec_start;
/* This is a cross-rerenderings accumulator of

View File

@ -19,7 +19,7 @@ struct js_window_object {
struct global_object {
struct SEE_interpreter interp;
/* used by setTimeout */
struct ecmascript_interpreter *interpreter;
struct ecmascript_interpreter *interpreter;
struct js_window_object *win;
struct string *ret;
int exec_start;

View File

@ -66,7 +66,7 @@ bzip2_open(struct stream_encoded *stream, int fd)
copy_struct(&data->fbz_stream, &null_bz_stream);
data->fdread = fd;
data->last_read = 0;
err = BZ2_bzDecompressInit(&data->fbz_stream, 0, 0);
if (err != BZ_OK) {
mem_free(data);
@ -86,14 +86,14 @@ bzip2_read(struct stream_encoded *stream, unsigned char *buf, int len)
if (!data) return -1;
assert(len > 0);
assert(len > 0);
if (data->last_read) return 0;
data->fbz_stream.avail_out = len;
data->fbz_stream.next_out = buf;
do {
do {
if (data->fbz_stream.avail_in == 0) {
int l = safe_read(data->fdread, data->buf,
ELINKS_BZ_BUFFER_LENGTH);
@ -111,12 +111,12 @@ bzip2_read(struct stream_encoded *stream, unsigned char *buf, int len)
data->fbz_stream.next_in = data->buf;
data->fbz_stream.avail_in = l;
}
err = BZ2_bzDecompress(&data->fbz_stream);
if (err == BZ_STREAM_END) {
if (err == BZ_STREAM_END) {
data->last_read = 1;
break;
} else if (err != BZ_OK) {
} else if (err != BZ_OK) {
return -1;
}
} while (data->fbz_stream.avail_out > 0);

View File

@ -147,7 +147,7 @@ display_entry(const FSP_RDENTRY *fentry, const unsigned char dircolor[])
add_to_string(&string, "\t<a href=\"");
/* The result of encode_uri_string does not include '&' or '<'
* which could mess up the HTML. */
encode_uri_string(&string, fentry->name, namelen, 0);
encode_uri_string(&string, fentry->name, namelen, 0);
if (fentry->type == FSP_RDTYPE_DIR) {
add_to_string(&string, "/\">");
if (*dircolor) {

View File

@ -725,7 +725,7 @@ add_file_cmd_to_str(struct connection *conn)
|| !add_crlf_to_string(&command)
|| !add_string_to_string(&command, &ftp_data_command)
|| !add_to_string(&command, "CWD ")
|| !add_string_to_string(&command, &pathname)
|| !add_crlf_to_string(&command)

View File

@ -702,7 +702,7 @@ http_send_header(struct socket *socket)
}
/* CONNECT: Referer probably is a secret page in the HTTPS
* server, so don't reveal it to the proxy. */
* server, so don't reveal it to the proxy. */
if (!use_connect) {
switch (get_opt_int("protocol.http.referer.policy")) {
case REFERER_NONE:
@ -1042,7 +1042,7 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
if (state == NORMAL) {
/* ... we aren't finishing yet. */
int written;
written = safe_write(conn->stream_pipes[1], data,
len > to_read ? to_read : len);
@ -1071,7 +1071,7 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
}
}
}
if (!conn->stream) {
conn->stream = open_encoded(conn->stream_pipes[0],
conn->content_encoding);

View File

@ -253,7 +253,7 @@ error:
fclose(fp);
goto error;
}
if (fclose(fp) != 0)
goto error;

View File

@ -93,7 +93,7 @@ add_to_ml(struct memory_list **ml, ...)
errline = line, errfile = file;
#else
errline = 0, errfile = "?";
#endif
#endif
elinks_error("add_to_ml(%p, NULL, ...)", ml);
#endif
return;

View File

@ -211,7 +211,7 @@ secure_open(unsigned char *file_name)
#else
const mode_t mask = S_IXUSR | S_IRWXG | S_IRWXO;
#endif
saved_mask = umask(mask);
ssi = secure_open_umask(file_name);
umask(saved_mask);