Branch: refs/heads/master Author: Hans Alves alves.h88@gmail.com Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 26 Aug 2012 13:31:37 Commit: bc52d7b8ac230e374f9f9a3f60fc2a62d2b1680f https://github.com/geany/geany-plugins/commit/bc52d7b8ac230e374f9f9a3f60fc2a...
Log Message: ----------- Fixed compiler warnings
Modified Paths: -------------- geanypg/ChangeLog geanypg/src/encrypt_cb.c geanypg/src/verify_aux.c
Modified: geanypg/ChangeLog 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -2,6 +2,7 @@
* Fixed bug 3557458 which caused a 0 byte to be added to the text when encrypting a selection. + Fixed some compiler warnings.
2012-06-04 Hans Alves <alves(dot)h88(at)gmail(dot)com>
Modified: geanypg/src/encrypt_cb.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -73,7 +73,7 @@ void geanypg_encrypt_cb(GtkMenuItem * menuitem, gpointer user_data) if (geanypg_encrypt_selection_dialog(&ed, &recp, &sign)) { int flags = 0; - int abort = 0; + int stop = 0; gpgme_key_t * key = recp; while (*key) { @@ -87,13 +87,13 @@ void geanypg_encrypt_cb(GtkMenuItem * menuitem, gpointer user_data) (*key)->uids->uid, geanypg_validity((*key)->owner_trust))) flags = GPGME_ENCRYPT_ALWAYS_TRUST; else - abort = 1; + stop = 1; } ++key; } - if (*recp && !abort) + if (*recp && !stop) geanypg_encrypt(&ed, recp, sign, flags); - else if (!abort && dialogs_show_question(_("No recipients were selected,\nuse symetric cipher?"))) + else if (!stop && dialogs_show_question(_("No recipients were selected,\nuse symetric cipher?"))) geanypg_encrypt(&ed, NULL, sign, flags); } if (recp)
Modified: geanypg/src/verify_aux.c 2 files changed, 0 insertions(+), 2 deletions(-) =================================================================== @@ -160,13 +160,11 @@ static char * geanypg_result(gpgme_signature_t sig) void geanypg_check_sig(encrypt_data * ed, gpgme_signature_t sig) { GtkWidget * dialog; - gpgme_sigsum_t summary; char buffer[512] = {0}; char * result; strncpy(buffer, sig->fpr, 40); buffer[40] = 0; geanypg_get_keys_with_fp(ed, buffer); - summary = sig->summary; result = geanypg_result(sig);
dialog = gtk_message_dialog_new_with_markup(GTK_WINDOW(geany->main_widgets->window),
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).