summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-07-26 12:06:57 -0400
committerMichael Mann <mmann78@netscape.net>2016-07-26 17:15:38 +0000
commit916b26ecfe7351393e6bdac3dd389faf6e207779 (patch)
tree3284280b81df79b0639ac8073ef91e111c95082f
parent9bfbffa1c8a54053ee73fc3c55330e70c0e79e81 (diff)
downloadwireshark-916b26ecfe7351393e6bdac3dd389faf6e207779.tar.gz
Cleanup some checkAPI warnings that were missed in previous patches.
Some search/replace of printf, g_warning and GTK APIs were changed to use a ws_ prefix Change-Id: I9beb763a975530a4006d1afbcad079a7d8d4ebf9 Reviewed-on: https://code.wireshark.org/review/16704 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/reedsolomon.c4
-rw-r--r--ui/gtk/extcap_gtk.c2
-rw-r--r--wsutil/time_util.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/epan/reedsolomon.c b/epan/reedsolomon.c
index c47ba4cbe9..1249654b82 100644
--- a/epan/reedsolomon.c
+++ b/epan/reedsolomon.c
@@ -463,7 +463,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
syn_error = 0;
for(i=1;i<=NN-KK;i++){
syn_error |= s[i];
- /*printf("syndrome %d = %x\n",i,s[i]);*/
+ /*ws_debug_printf("syndrome %d = %x\n",i,s[i]);*/
s[i] = Index_of[s[i]];
}
@@ -649,7 +649,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
}
if (den == 0) {
#if DEBUG >= 1
- printf("\n ERROR: denominator = 0\n");
+ ws_debug_printf("\n ERROR: denominator = 0\n");
#endif
/* Convert to dual- basis */
count = -1;
diff --git a/ui/gtk/extcap_gtk.c b/ui/gtk/extcap_gtk.c
index a1353c0c5d..55d93892c9 100644
--- a/ui/gtk/extcap_gtk.c
+++ b/ui/gtk/extcap_gtk.c
@@ -609,7 +609,7 @@ static GtkWidget *extcap_create_gtk_fileselect(extcap_arg *argument,
#if GTK_CHECK_VERSION(3, 0, 0)
ret_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3);
#else
- ret_box = gtk_hbox_new(FALSE, 3);
+ ret_box = ws_gtk_hbox_new(FALSE, 3);
#endif
gtk_box_pack_start ( GTK_BOX(ret_box), entry, TRUE, TRUE, 5 );
diff --git a/wsutil/time_util.c b/wsutil/time_util.c
index 5f6ac8a39f..cf209bfbb3 100644
--- a/wsutil/time_util.c
+++ b/wsutil/time_util.c
@@ -32,6 +32,7 @@
#else
#include <windows.h>
#endif
+#include "ws_printf.h" /* ws_g_warning */
/* converts a broken down date representation, relative to UTC,
* to a timestamp; it uses timegm() if it's available.
@@ -114,7 +115,7 @@ void log_resource_usage(gboolean reset_delta, const char *format, ...) {
g_string_append_vprintf(log_str, format, ap);
va_end(ap);
- g_warning("%s", log_str->str);
+ ws_g_warning("%s", log_str->str);
g_string_free(log_str, TRUE);
}