[almanah] core: Don't compile encryption-only code when encryption is disabled



commit 9ce42c639c2ed9781b840a23ab359765d64f9391
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Apr 2 12:43:19 2011 +0100

    core: Don't compile encryption-only code when encryption is disabled

 src/storage-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/storage-manager.c b/src/storage-manager.c
index e728af9..77188ac 100644
--- a/src/storage-manager.c
+++ b/src/storage-manager.c
@@ -622,11 +622,13 @@ almanah_storage_manager_disconnect (AlmanahStorageManager *self, GError **error)
 
 	return TRUE;
 
+#ifdef ENABLE_ENCRYPTION
 delete_encrypted_db:
 	/* Delete the old encrypted database and return */
 	g_unlink (self->priv->filename);
 	g_signal_emit (self, storage_manager_signals[SIGNAL_DISCONNECTED], 0, NULL, NULL);
 	return TRUE;
+#endif /* ENABLE_ENCRYPTION */
 }
 
 static gboolean



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