diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /e-util/e-file-request.c | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-file-request.c')
-rw-r--r-- | e-util/e-file-request.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/e-util/e-file-request.c b/e-util/e-file-request.c index 4b84aad931..724680a280 100644 --- a/e-util/e-file-request.c +++ b/e-util/e-file-request.c @@ -95,7 +95,7 @@ file_request_send_async (SoupRequest *request, { GSimpleAsyncResult *simple; - d(printf("received request for %s\n", soup_uri_to_string (uri, FALSE))); + d (printf ("received request for %s\n", soup_uri_to_string (uri, FALSE))); /* WebKit won't allow us to load data through local file:// protocol * when using "remote" mail:// protocol, so we have evo-file:// @@ -120,9 +120,11 @@ file_request_send_finish (SoupRequest *request, GAsyncResult *result, GError **error) { + GSimpleAsyncResult *simple; GInputStream *stream; - stream = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)); + simple = G_SIMPLE_ASYNC_RESULT (result); + stream = g_simple_async_result_get_op_res_gpointer (simple); /* Reset the stream before passing it back to webkit */ if (stream && G_IS_SEEKABLE (stream)) @@ -139,7 +141,8 @@ file_request_get_content_length (SoupRequest *request) { EFileRequest *efr = E_FILE_REQUEST (request); - d(printf("Content-Length: %d bytes\n", efr->priv->content_length)); + d (printf ("Content-Length: %d bytes\n", efr->priv->content_length)); + return efr->priv->content_length; } @@ -148,12 +151,12 @@ file_request_get_content_type (SoupRequest *request) { EFileRequest *efr = E_FILE_REQUEST (request); - d(printf("Content-Type: %s\n", efr->priv->content_type)); + d (printf ("Content-Type: %s\n", efr->priv->content_type)); return efr->priv->content_type; } -static const char *data_schemes[] = { "evo-file", NULL }; +static const gchar *data_schemes[] = { "evo-file", NULL }; static void e_file_request_class_init (EFileRequestClass *class) |