[dconf] service: fix some harmless warnings



commit 3f1b8d8bddbd35a801332e243f16b57c1eab815c
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Jan 9 13:09:49 2013 -0500

    service: fix some harmless warnings

 service/dconf-blame.c      |    1 +
 service/dconf-gvdb-utils.c |    1 +
 service/dconf-service.c    |    1 +
 service/dconf-writer.c     |    3 ++-
 4 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/service/dconf-blame.c b/service/dconf-blame.c
index 920ef08..d979d3a 100644
--- a/service/dconf-blame.c
+++ b/service/dconf-blame.c
@@ -24,6 +24,7 @@
 #include "dconf-generated.h"
 
 #include <string.h>
+#include <stdlib.h>
 #include <fcntl.h>
 
 typedef DConfDBusServiceInfoSkeletonClass DConfBlameClass;
diff --git a/service/dconf-gvdb-utils.c b/service/dconf-gvdb-utils.c
index a9b7ab4..0fc3478 100644
--- a/service/dconf-gvdb-utils.c
+++ b/service/dconf-gvdb-utils.c
@@ -22,6 +22,7 @@
 
 #include "dconf-gvdb-utils.h"
 
+#include "../common/dconf-paths.h"
 #include "../gvdb/gvdb-builder.h"
 #include "../gvdb/gvdb-reader.h"
 
diff --git a/service/dconf-service.c b/service/dconf-service.c
index e2fdb2b..87eb4ca 100644
--- a/service/dconf-service.c
+++ b/service/dconf-service.c
@@ -25,6 +25,7 @@
 #include "dconf-writer.h"
 #include "dconf-blame.h"
 
+#include <glib-unix.h>
 #include <string.h>
 #include <fcntl.h>
 
diff --git a/service/dconf-writer.c b/service/dconf-writer.c
index fb3589a..26f5ecc 100644
--- a/service/dconf-writer.c
+++ b/service/dconf-writer.c
@@ -25,6 +25,7 @@
 #include "../shm/dconf-shm.h"
 #include "dconf-gvdb-utils.h"
 #include "dconf-generated.h"
+#include "dconf-blame.h"
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -71,7 +72,7 @@ dconf_writer_real_list (GHashTable *set)
   if (!dir)
     return;
 
-  while (name = g_dir_read_name (dir))
+  while ((name = g_dir_read_name (dir)))
     g_hash_table_add (set, g_strdup (name));
 
   g_dir_close (dir);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]