summaryrefslogtreecommitdiff
path: root/wallpapers.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-04 22:22:11 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-04 22:22:11 +0100
commit8a31fb62fe129d6ae60810a78a9e201ed5bb6c73 (patch)
tree57406a09e4c20724263f21ba9b6da640bd18019c /wallpapers.c
parent3e664405587c5cf44fa05dc4a5864ce08243c1dc (diff)
Added -Wall to CCFLAGS and some code cleanup.
Diffstat (limited to 'wallpapers.c')
-rw-r--r--wallpapers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wallpapers.c b/wallpapers.c
index e39ef21..56a72c6 100644
--- a/wallpapers.c
+++ b/wallpapers.c
@@ -16,10 +16,8 @@
static guint context_id = 0;
void add_dir_recursive(const gchar *path, sqlite_uint64 parent, GtkStatusbar *statusbar) {
- int pathlen = strlen(path);
GDir *dir;
const gchar *filename;
- sqlite_uint64 dir_temp;
sqlite_uint64 dirid;
gchar *filepath;
gchar *msg;
@@ -59,7 +57,7 @@ void add_dir_recursive(const gchar *path, sqlite_uint64 parent, GtkStatusbar *st
}
if(g_access(filepath, R_OK) == -1) {
- g_warning("Can't read %s: \n", filepath, strerror(errno));
+ g_warning("Can't read %s: %s\n", filepath, strerror(errno));
g_free(filepath);
continue;
}