gvfs/gvfs-mtp-build.patch

35 lines
1.1 KiB
Diff
Raw Normal View History

From 238a92496f5ab165b52f90d414379525cb262ee1 Mon Sep 17 00:00:00 2001
From: Philip Langdale <philipl@overt.org>
Date: Wed, 01 May 2013 22:33:02 +0000
Subject: MTP: Fix compilation warning.
The add_cache_entry helper's signature said it returned the CacheEntry
but it doesn't.
https://bugzilla.gnome.org/show_bug.cgi?id=699424
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 48f6b8b..cbdbb02 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -144,7 +144,7 @@ emit_delete_event (gpointer key,
* Cache Helpers
************************************************/
-static CacheEntry *
+static void
add_cache_entry (GVfsBackendMtp *backend,
char *path,
uint32_t storage,
@@ -291,7 +291,6 @@ remove_cache_entry (GVfsBackendMtp *backend,
const char *path)
{
DEBUG ("(III) remove_cache_entry: %s", path);
- //g_hash_table_remove (backend->file_cache, path);
g_hash_table_foreach_remove (backend->file_cache,
remove_cache_entry_by_prefix,
(gpointer) path);
--
cgit v0.9.1