Commit 9a66c09d86bb49c426127bf6c867153eecc0b598
1 parent
77a8d56e
Exists in
master
and in
5 other branches
Removendo warnings
Showing
3 changed files
with
7 additions
and
12 deletions
Show diff stats
src/lib3270/telnet.c
| ... | ... | @@ -849,7 +849,7 @@ static int ssl_negotiate(H3270 *hSession) |
| 849 | 849 | trace_dsn(hSession,"SSL_connect failed: %s %s\n", |
| 850 | 850 | ERR_lib_error_string(hSession->ssl_error), |
| 851 | 851 | ERR_reason_error_string(hSession->ssl_error)); |
| 852 | - popup_an_error(hSession,_( ERR_reason_error_string(hSession->ssl_error) )); | |
| 852 | + popup_an_error(hSession,"%s",_( ERR_reason_error_string(hSession->ssl_error) )); | |
| 853 | 853 | } |
| 854 | 854 | |
| 855 | 855 | } | ... | ... |
src/lib3270/toggles.c
| ... | ... | @@ -37,13 +37,14 @@ |
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | 39 | #include <errno.h> |
| 40 | +#include <sys/types.h> | |
| 41 | +#include <sys/socket.h> | |
| 42 | + | |
| 40 | 43 | #include <lib3270/config.h> |
| 41 | 44 | #include "toggle.h" |
| 42 | 45 | #include "globals.h" |
| 43 | -//#include "appres.h" | |
| 44 | 46 | |
| 45 | 47 | #include "ansic.h" |
| 46 | -//#include "actionsc.h" | |
| 47 | 48 | #include "ctlrc.h" |
| 48 | 49 | #include "popupsc.h" |
| 49 | 50 | #include "screenc.h" | ... | ... |
src/pw3270/v3270/security.c
| ... | ... | @@ -362,7 +362,7 @@ |
| 362 | 362 | GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, |
| 363 | 363 | GTK_MESSAGE_INFO, |
| 364 | 364 | GTK_BUTTONS_CLOSE, |
| 365 | - v3270_get_host(widget) | |
| 365 | + "%s",v3270_get_host(widget) | |
| 366 | 366 | ); |
| 367 | 367 | |
| 368 | 368 | gtk_message_dialog_format_secondary_markup( |
| ... | ... | @@ -401,15 +401,9 @@ |
| 401 | 401 | gtk_message_dialog_set_image(GTK_MESSAGE_DIALOG(dialog),gtk_image_new_from_stock(icon,GTK_ICON_SIZE_DIALOG)); |
| 402 | 402 | |
| 403 | 403 | if(text) |
| 404 | - { | |
| 405 | - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), gettext(text)); | |
| 406 | - } | |
| 404 | + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), "%s", gettext(text)); | |
| 407 | 405 | else |
| 408 | - { | |
| 409 | - gchar *str = g_strdup_printf( _( "Unexpected SSL error <b>%ld</b>" ),id); | |
| 410 | - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),text); | |
| 411 | - g_free(str); | |
| 412 | - } | |
| 406 | + gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog),_( "Unexpected SSL error <b>%ld</b>" ),id); | |
| 413 | 407 | |
| 414 | 408 | } |
| 415 | 409 | #endif // HAVE_LIBSSL | ... | ... |