From 8a31fb62fe129d6ae60810a78a9e201ed5bb6c73 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 4 Jan 2010 22:22:11 +0100 Subject: Added -Wall to CCFLAGS and some code cleanup. --- wallpapers.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'wallpapers.c') 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; } -- cgit v1.2.3