[epiphany/wip/sync-rebase: 68/86] ephy-sync: No space after cast
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync-rebase: 68/86] ephy-sync: No space after cast
- Date: Fri, 7 Oct 2016 22:54:26 +0000 (UTC)
commit 7fa3242140a1eebf55d209d803c49e011dcae24b
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Mon Aug 29 20:42:03 2016 +0300
ephy-sync: No space after cast
src/bookmarks/ephy-bookmark.c | 4 ++--
src/ephy-sync-crypto.c | 12 ++++++------
src/ephy-sync-service.c | 10 +++++-----
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index 1c1cdee..1337ad9 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -541,8 +541,8 @@ ephy_bookmark_from_bso (JsonObject *bso)
sync_key = ephy_sync_crypto_decode_hex (ephy_sync_service_get_token (service, TOKEN_KB));
decoded = ephy_sync_crypto_base64_urlsafe_decode (json_object_get_string_member (bso, "payload"),
&decoded_len, FALSE);
- decrypted = (char *) ephy_sync_crypto_aes_256 (AES_256_MODE_DECRYPT, sync_key,
- decoded, decoded_len, NULL);
+ decrypted = (char *)ephy_sync_crypto_aes_256 (AES_256_MODE_DECRYPT, sync_key,
+ decoded, decoded_len, NULL);
object = json_gobject_from_data (EPHY_TYPE_BOOKMARK, decrypted, strlen (decrypted), &error);
if (object == NULL) {
diff --git a/src/ephy-sync-crypto.c b/src/ephy-sync-crypto.c
index 27ef6ef..2db1f34 100644
--- a/src/ephy-sync-crypto.c
+++ b/src/ephy-sync-crypto.c
@@ -478,7 +478,7 @@ ephy_sync_crypto_process_key_fetch_token (const char *keyFetchToken,
ephy_sync_crypto_hkdf (kft, EPHY_SYNC_TOKEN_LENGTH,
NULL, 0,
- (guint8 *) info_kft, strlen (info_kft),
+ (guint8 *)info_kft, strlen (info_kft),
out1, 3 * EPHY_SYNC_TOKEN_LENGTH);
*tokenID = g_malloc (EPHY_SYNC_TOKEN_LENGTH);
@@ -490,7 +490,7 @@ ephy_sync_crypto_process_key_fetch_token (const char *keyFetchToken,
ephy_sync_crypto_hkdf (keyRequestKey, EPHY_SYNC_TOKEN_LENGTH,
NULL, 0,
- (guint8 *) info_keys, strlen (info_keys),
+ (guint8 *)info_keys, strlen (info_keys),
out2, 3 * EPHY_SYNC_TOKEN_LENGTH);
*respHMACkey = g_malloc (EPHY_SYNC_TOKEN_LENGTH);
@@ -527,7 +527,7 @@ ephy_sync_crypto_process_session_token (const char *sessionToken,
ephy_sync_crypto_hkdf (st, EPHY_SYNC_TOKEN_LENGTH,
NULL, 0,
- (guint8 *) info, strlen (info),
+ (guint8 *)info, strlen (info),
out, 3 * EPHY_SYNC_TOKEN_LENGTH);
*tokenID = g_malloc (EPHY_SYNC_TOKEN_LENGTH);
@@ -623,7 +623,7 @@ ephy_sync_crypto_compute_hawk_header (const char *url,
payload = options ? options->payload : NULL;
timestamp = options ? options->timestamp : NULL;
uri = soup_uri_new (url);
- resource = (char *) soup_uri_get_path (uri);
+ resource = (char *)soup_uri_get_path (uri);
if (soup_uri_get_query (uri) != NULL)
resource = g_strconcat (resource, "?", soup_uri_get_query (uri), NULL);
@@ -749,8 +749,8 @@ ephy_sync_crypto_create_assertion (const char *certificate,
expires_at = g_get_real_time () / 1000 + duration * 1000;
body = g_strdup_printf ("{\"exp\": %lu, \"aud\": \"%s\"}", expires_at, audience);
- body_b64 = ephy_sync_crypto_base64_urlsafe_encode ((guint8 *) body, strlen (body), TRUE);
- header_b64 = ephy_sync_crypto_base64_urlsafe_encode ((guint8 *) header, strlen (header), TRUE);
+ body_b64 = ephy_sync_crypto_base64_urlsafe_encode ((guint8 *)body, strlen (body), TRUE);
+ header_b64 = ephy_sync_crypto_base64_urlsafe_encode ((guint8 *)header, strlen (header), TRUE);
to_sign = g_strdup_printf ("%s.%s", header_b64, body_b64);
mpz_init (signature);
diff --git a/src/ephy-sync-service.c b/src/ephy-sync-service.c
index 0c19df8..354e18c 100644
--- a/src/ephy-sync-service.c
+++ b/src/ephy-sync-service.c
@@ -269,7 +269,7 @@ ephy_sync_service_send_storage_request (EphySyncService *self,
}
hheader = ephy_sync_crypto_compute_hawk_header (url, data->method, self->storage_credentials_id,
- (guint8 *) self->storage_credentials_key,
+ (guint8 *)self->storage_credentials_key,
strlen (self->storage_credentials_key),
hoptions);
soup_message_headers_append (msg->request_headers, "authorization", hheader->header);
@@ -307,8 +307,8 @@ ephy_sync_service_certificate_is_valid (EphySyncService *self,
uri = soup_uri_new (MOZILLA_FXA_SERVER_URL);
pieces = g_strsplit (certificate, ".", 0);
- header = (char *) ephy_sync_crypto_base64_urlsafe_decode (pieces[0], &len, TRUE);
- payload = (char *) ephy_sync_crypto_base64_urlsafe_decode (pieces[1], &len, TRUE);
+ header = (char *)ephy_sync_crypto_base64_urlsafe_decode (pieces[0], &len, TRUE);
+ payload = (char *)ephy_sync_crypto_base64_urlsafe_decode (pieces[1], &len, TRUE);
parser = json_parser_new ();
json_parser_load_from_data (parser, header, -1, NULL);
@@ -357,7 +357,7 @@ obtain_storage_credentials_response_cb (SoupSession *session,
JsonObject *errors;
JsonArray *array;
- data = (StorageServerRequestAsyncData *) user_data;
+ data = (StorageServerRequestAsyncData *)user_data;
service = EPHY_SYNC_SERVICE (data->service);
parser = json_parser_new ();
@@ -447,7 +447,7 @@ obtain_signed_certificate_response_cb (SoupSession *session,
JsonObject *json;
const char *certificate;
- data = (StorageServerRequestAsyncData *) user_data;
+ data = (StorageServerRequestAsyncData *)user_data;
service = EPHY_SYNC_SERVICE (data->service);
parser = json_parser_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]