aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-02-27 05:19:43 +0000
committercorvid <corvid@lavabit.com>2010-02-27 05:19:43 +0000
commitc078e58a08a9fcfdc65631ef3dacc5ac54b5a3c3 (patch)
tree4c8f5a3a1deb1e46de863c049eb70ed3d84e9d84 /src
parent6e9217a172572e79d1d4fbd261568bbc8bed11ac (diff)
trim some spaces
Diffstat (limited to 'src')
-rw-r--r--src/IO/http.c6
-rw-r--r--src/capi.c4
-rw-r--r--src/capi.h2
-rw-r--r--src/cssparser.cc2
-rw-r--r--src/html.cc2
-rw-r--r--src/misc.c2
-rw-r--r--src/ui.cc2
-rw-r--r--src/uicmd.cc4
8 files changed, 12 insertions, 12 deletions
diff --git a/src/IO/http.c b/src/IO/http.c
index 1ff7399b..77a1be43 100644
--- a/src/IO/http.c
+++ b/src/IO/http.c
@@ -80,7 +80,7 @@ typedef struct {
typedef struct {
char *host;
int active_connections;
- SocketQueue_t queue;
+ SocketQueue_t queue;
} HostConnection_t;
static void Http_socket_queue_init(SocketQueue_t *sq);
@@ -202,7 +202,7 @@ static void Http_socket_free(int SKey)
Http_connect_queued_sockets(hc);
if (hc->active_connections == 0)
Http_host_connection_remove(hc);
- }
+ }
dFree(S);
}
}
@@ -688,7 +688,7 @@ static void Http_socket_enqueue(SocketQueue_t *sq, SocketData_t* sock)
sq->tail->next = se;
sq->tail = se;
- if (! sq->head)
+ if (! sq->head)
sq->head = se;
}
diff --git a/src/capi.c b/src/capi.c
index f95e7004..cb7a9409 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -188,7 +188,7 @@ static void Capi_conn_resume(void)
* Abort the connection for a given url, using its CCC.
* (OpAbort 2,BCK removes the cache entry)
* TODO: when conn is already done, the cache entry isn't removed.
- * This may be wrong and needs a revision.
+ * This may be wrong and needs a revision.
*/
void a_Capi_conn_abort_by_url(const DilloUrl *url)
{
@@ -520,7 +520,7 @@ const char *a_Capi_set_content_type(const DilloUrl *url, const char *ctype,
* Most of the time we send dpi commands, but it also serves for raw data
* as with "view source".
*/
-int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
+int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
char *data, int data_sz, char *server, int flags)
{
capi_conn_t *conn;
diff --git a/src/capi.h b/src/capi.h
index d4fae570..4472baa4 100644
--- a/src/capi.h
+++ b/src/capi.h
@@ -31,7 +31,7 @@ const char *a_Capi_set_content_type(const DilloUrl *url, const char *ctype,
int a_Capi_get_flags(const DilloUrl *Url);
int a_Capi_get_flags_with_redirection(const DilloUrl *Url);
int a_Capi_dpi_verify_request(BrowserWindow *bw, DilloUrl *url);
-int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
+int a_Capi_dpi_send_data(const DilloUrl *url, void *bw,
char *data, int data_sz, char *server, int flags);
int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server,
int flags);
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 85ae0610..f1d8faef 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -464,7 +464,7 @@ void CssParser::nextToken()
c = getChar();
} while (c != EOF && ! skipString(c, "*/"));
} else if (skipString(c, "<!--")) { // ignore XML comment markers
- } else if (skipString(c, "-->")) {
+ } else if (skipString(c, "-->")) {
} else {
break;
}
diff --git a/src/html.cc b/src/html.cc
index 21cfe2c4..be82fe7f 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1920,7 +1920,7 @@ static void Html_tag_open_font(DilloHtml *html, const char *tag, int tagsize)
static void Html_tag_open_abbr(DilloHtml *html, const char *tag, int tagsize)
{
const char *attrbuf;
-
+
if (prefs.show_tooltip &&
(attrbuf = a_Html_get_attr(html, tag, tagsize, "title"))) {
CssPropertyList props;
diff --git a/src/misc.c b/src/misc.c
index 4205f896..9ba8c9b9 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -90,7 +90,7 @@ a_Misc_expand_tabs(char **start, char *end, char *buf, int buflen)
assert(char_len <= 4);
for (j = 0; j < char_len; j++)
buf[written++] = (*start)[j];
-
+
*start += char_len;
}
diff --git a/src/ui.cc b/src/ui.cc
index 430de896..fac78604 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -220,7 +220,7 @@ static void search_cb(Widget *wid, void *data)
/*
* Callback for the help button.
- */
+ */
static void help_cb(Widget *w, void *)
{
char *path = dStrconcat(DILLO_DOCDIR, "user_help.html", NULL);
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 4ee1b391..81133863 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -630,14 +630,14 @@ static void UIcmd_open_url_nbw(BrowserWindow *new_bw, const DilloUrl *url)
BW2UI(new_bw)->focus_main();
} else {
BW2UI(new_bw)->focus_location();
- }
+ }
}
/*
* Open a new URL in a new browser window
*/
void a_UIcmd_open_url_nw(BrowserWindow *bw, const DilloUrl *url)
-{
+{
int w, h;
BrowserWindow *new_bw;