Cosmetic: use always g_getenv instead of getenv
[claws.git] / src / plugins / pgpcore / prefs_gpg.c
index eb543a31ea224d1c207899b3578f9eba8ad8ffa6..2aaebf28f335308ec05e48958515d968655c1bd0 100644 (file)
@@ -14,7 +14,6 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * 
  */
 
 #ifdef HAVE_CONFIG_H
@@ -200,7 +199,7 @@ static void prefs_gpg_create_widget_func(PrefsPage *_page,
 
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbtn_auto_check_signatures), config->auto_check_signatures);
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbtn_autocompletion), config->autocompletion);
-       if (!getenv("GPG_AGENT_INFO"))
+       if (!g_getenv("GPG_AGENT_INFO"))
                gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbtn_use_gpg_agent), FALSE);
        else
                gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbtn_use_gpg_agent), config->use_gpg_agent);
@@ -502,7 +501,7 @@ void prefs_gpg_save_config(void)
                return;
 
        if (prefs_write_param(param, pfile->fp) < 0) {
-               g_warning("failed to write GPG configuration to file\n");
+               g_warning("failed to write GPG configuration to file");
                prefs_file_close_revert(pfile);
                return;
        }
@@ -562,7 +561,7 @@ void prefs_gpg_account_set_config(PrefsAccount *account, GPGAccountConfig *confi
                break;
        default:
                confstr = g_strdup("");
-               g_warning("prefs_gpg_account_set_config: bad sign_key val\n");
+               g_warning("prefs_gpg_account_set_config: bad sign_key val");
        }
 
        prefs_account_set_privacy_prefs(account, "gpg", confstr);