From f506d3873fdf2f1997e4603f867866ab8765f309 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 23 Mar 2006 21:23:58 +0000 Subject: Fix print format/arg mismatch. 2006-03-23 Christian Persch * lib/ephy-node.c: (write_parent), (ephy_node_write_to_xml): Fix print format/arg mismatch. --- lib/ephy-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ephy-node.c') diff --git a/lib/ephy-node.c b/lib/ephy-node.c index 7da180d19..39c72f647 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -689,7 +689,7 @@ write_parent (guint id, if (data->ret < 0) return; data->ret = xmlTextWriterWriteFormatAttribute - (writer, (const xmlChar *)"id", "%ld", node_info->node->id); + (writer, (const xmlChar *)"id", "%d", node_info->node->id); if (data->ret < 0) return; data->ret = xmlTextWriterEndElement (writer); /* parent */ @@ -713,7 +713,7 @@ ephy_node_write_to_xml(EphyNode *node, if (ret < 0) goto out; /* write node id */ - ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%ld", node->id); + ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *)"id", "%d", node->id); if (ret < 0) goto out; /* write node properties */ -- cgit