[evince] [comics] Do not initalize GPid's with -1
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [comics] Do not initalize GPid's with -1
- Date: Tue, 22 Dec 2009 16:32:07 +0000 (UTC)
commit 7d59434cbd7ea6bdd42a6f3223a47cbb06ba4069
Author: Hib Eris <hib hiberis nl>
Date: Mon Dec 21 12:49:11 2009 +0100
[comics] Do not initalize GPid's with -1
On Windows, a GPid is a pointer, not an integer. Initializing it with
"-1" causes warnings on Windows and is unnecessay on Unix, so it is
better to not do that. See bgo#605146
backend/comics/comics-document.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index 8928422..9f657c2 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -504,7 +504,7 @@ comics_document_get_page_size (EvDocument *document,
guchar buf[1024];
gboolean success, got_size = FALSE;
gint outpipe = -1;
- GPid child_pid = -1;
+ GPid child_pid;
gssize bytes;
GdkPixbuf *pixbuf;
gchar *filename;
@@ -579,7 +579,7 @@ comics_document_render_pixbuf (EvDocument *document,
guchar buf[4096];
gboolean success;
gint outpipe = -1;
- GPid child_pid = -1;
+ GPid child_pid;
gssize bytes;
gint width, height;
gchar *filename;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]