Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Nixdorf <flocke@shadowice.org>2015-08-30 12:56:02 +0300
committerJakob Nixdorf <flocke@shadowice.org>2015-08-30 12:56:02 +0300
commit9abb26301c2b4700b75efb8186e375cd66a9c634 (patch)
tree91ae2390f6205a76d46b6cae1611b0839dcc25ab
parent9359ec3b6f687745e2e2995ba30b442396c7d4cf (diff)
steam_rsa: G_UNLIKELY -> G_LIKELY.
-rw-r--r--steam-mobile/steam_rsa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/steam-mobile/steam_rsa.c b/steam-mobile/steam_rsa.c
index 45986f1..3f02538 100644
--- a/steam-mobile/steam_rsa.c
+++ b/steam-mobile/steam_rsa.c
@@ -210,22 +210,22 @@ steam_crypt_rsa_enc(const GByteArray *mod, const GByteArray *exp, const GByteArr
res |= gcry_mpi_scan(&empi, GCRYMPI_FMT_USG, exp->data, exp->len, NULL);
res |= gcry_mpi_scan(&dmpi, GCRYMPI_FMT_USG, bytes->data, bytes->len, NULL);
- if (G_UNLIKELY(res == 0)) {
+ if (G_LIKELY(res == 0)) {
res = gcry_sexp_build(&kata, NULL, "(public-key(rsa(n %m)(e %m)))", mmpi, empi);
res |= gcry_sexp_build(&data, NULL, "(data(flags pkcs1)(value %m))", dmpi);
- if (G_UNLIKELY(res == 0)) {
+ if (G_LIKELY(res == 0)) {
res = gcry_pk_encrypt(&cata, data, kata);
- if (G_UNLIKELY(res == 0)) {
+ if (G_LIKELY(res == 0)) {
gcry_sexp_release(data);
data = gcry_sexp_find_token(cata, "a", 0);
- if (G_UNLIKELY(data != NULL)) {
+ if (G_LIKELY(data != NULL)) {
gcry_mpi_release(dmpi);
dmpi = gcry_sexp_nth_mpi(data, 1, GCRYMPI_FMT_USG);
- if (G_UNLIKELY(dmpi != NULL)) {
+ if (G_LIKELY(dmpi != NULL)) {
ret = g_byte_array_new();
g_byte_array_set_size(ret, mod->len);