diff options
author | James Booth <boothj5@gmail.com> | 2016-04-27 22:10:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-04-27 22:10:27 +0100 |
commit | d4789ac375d29457aff3e8c009edb9311de8ed13 (patch) | |
tree | 16b51078d5fc5b4285b90fbc5022273b785b505c /src/otr | |
parent | df30d4ba52efd31f3d559912e8c5c26d5ecd685c (diff) | |
download | profani-tty-d4789ac375d29457aff3e8c009edb9311de8ed13.tar.gz |
Fixed compiler errors
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c index b1cf1e16..7b7b8e8e 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -138,7 +138,7 @@ cb_write_fingerprints(void *opdata) GString *fpsfilename = g_string_new(basedir->str); g_string_append(fpsfilename, "fingerprints.txt"); err = otrl_privkey_write_fingerprints(user_state, fpsfilename->str); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { log_error("Failed to write fingerprints file"); cons_show_error("Failed to create fingerprints file"); } @@ -243,7 +243,7 @@ otr_on_connect(ProfAccount *account) } else { log_info("Loading OTR private key %s", keysfilename->str); err = otrl_privkey_read(user_state, keysfilename->str); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { log_warning("Failed to read OTR private key file: %s", keysfilename->str); cons_show_error("Failed to read OTR private key file: %s", keysfilename->str); g_string_free(basedir, TRUE); @@ -271,7 +271,7 @@ otr_on_connect(ProfAccount *account) } else { log_info("Loading OTR fingerprints %s", fpsfilename->str); err = otrl_privkey_read_fingerprints(user_state, fpsfilename->str, NULL, NULL); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { log_error("Failed to load OTR fingerprints file: %s", fpsfilename->str); g_string_free(basedir, TRUE); g_string_free(keysfilename, TRUE); @@ -415,7 +415,7 @@ otr_keygen(ProfAccount *account) cons_show("Moving the mouse randomly around the screen may speed up the process!"); ui_update(); err = otrl_privkey_generate(user_state, keysfilename->str, account->jid, "xmpp"); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { g_string_free(basedir, TRUE); g_string_free(keysfilename, TRUE); log_error("Failed to generate private key"); @@ -430,7 +430,7 @@ otr_keygen(ProfAccount *account) g_string_append(fpsfilename, "fingerprints.txt"); log_debug("Generating fingerprints file %s for %s", fpsfilename->str, jid); err = otrl_privkey_write_fingerprints(user_state, fpsfilename->str); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { g_string_free(basedir, TRUE); g_string_free(keysfilename, TRUE); log_error("Failed to create fingerprints file"); @@ -440,7 +440,7 @@ otr_keygen(ProfAccount *account) log_info("Fingerprints file created"); err = otrl_privkey_read(user_state, keysfilename->str); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { g_string_free(basedir, TRUE); g_string_free(keysfilename, TRUE); log_error("Failed to load private key"); @@ -449,7 +449,7 @@ otr_keygen(ProfAccount *account) } err = otrl_privkey_read_fingerprints(user_state, fpsfilename->str, NULL, NULL); - if (!err == GPG_ERR_NO_ERROR) { + if (err != GPG_ERR_NO_ERROR) { g_string_free(basedir, TRUE); g_string_free(keysfilename, TRUE); log_error("Failed to load fingerprints"); |