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

Trim trailing whitespaces.

This commit is contained in:
Laurent MONIN 2007-09-14 15:12:32 +02:00
parent 890903a65d
commit f0e66866f5
17 changed files with 25 additions and 25 deletions

View File

@ -95,7 +95,7 @@ parse(void)
space = strchr(current, ' ');
if (!space)
return;
host = find(space + 1, "Host: ");
if (!host)
return;

View File

@ -835,7 +835,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 { \
@ -894,7 +894,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

@ -616,7 +616,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

@ -29,7 +29,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

@ -49,7 +49,7 @@ cache_entry_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
if (!JS_InstanceOf(ctx, obj, (JSClass *) &cache_entry_class, NULL))
return JS_FALSE;
cached = JS_GetInstancePrivate(ctx, obj,
cached = JS_GetInstancePrivate(ctx, obj,
(JSClass *) &cache_entry_class, NULL);
if (!cache_entry_is_valid(cached)) return JS_FALSE;

View File

@ -54,7 +54,7 @@ struct screen_char {
unsigned char color[SCREEN_COLOR_SIZE];
};
/** @relates screen_char */
/** @relates screen_char */
#define copy_screen_chars(to, from, amount) \
do { memcpy(to, from, (amount) * sizeof(struct screen_char)); } while (0)

View File

@ -97,7 +97,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

@ -1,4 +1,4 @@
/** Process' CPU time utilities
/** Process' CPU time utilities
* @file*/
#ifndef EL__UTIL_PROFILE_H

View File

@ -213,7 +213,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);