summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-02-20 15:01:37 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-02-20 15:08:36 +0100
commit739de549c8c6bba15e6185794b6120623bdb8e05 (patch)
treeb1f79cb3dca287d46ae21ec2a96cf9a96ea4d190
parent3ec8ef7f8b01bf1045fe5f4dcb4de2f75dd91658 (diff)
downloadfribid-739de549c8c6bba15e6185794b6120623bdb8e05.tar.gz
fribid-739de549c8c6bba15e6185794b6120623bdb8e05.tar.bz2
fribid-739de549c8c6bba15e6185794b6120623bdb8e05.zip
Fix GCC warnings about sentinels
Thanks to Markus Bergkvist for this patch.
-rw-r--r--client/gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 8c08eee..c148dbd 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -224,7 +224,7 @@ void platform_startSign(const char *url, const char *hostname, const char *ip,
gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(signaturesCombo),
renderer, TRUE);
gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(signaturesCombo),
- renderer, "text", 0, NULL);
+ renderer, "text", 0, (char *)NULL);
// Used to dim the "Sign" button when no signature has been selected
g_signal_connect(G_OBJECT(signaturesCombo), "changed",
@@ -311,7 +311,7 @@ static void selectExternalFile() {
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
- NULL));
+ (char *)NULL));
if (gtk_dialog_run(GTK_DIALOG(chooser)) == GTK_RESPONSE_ACCEPT) {
gchar *filename = gtk_file_chooser_get_filename(chooser);
GtkTreeModel *signatures = gtk_combo_box_get_model(signaturesCombo);