From 0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 20 Aug 2001 16:25:12 +0000 Subject: use DB_NOTFOUND const 2001-08-20 JP Rosevear * backend/pas/pas-backend-file.c (pas_backend_file_changes_foreach_key): use DB_NOTFOUND const svn path=/trunk/; revision=12311 --- addressbook/backend/pas/pas-backend-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 1942400d09..77455f59fc 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -344,10 +344,10 @@ pas_backend_file_changes_foreach_key (const char *key, gpointer user_data) memset (&vcard_dbt, 0, sizeof (vcard_dbt)); db_error = db->get (db, NULL, &id_dbt, &vcard_dbt, 0); - if (db_error == 1) { + if (db_error == DB_NOTFOUND) { char *id = id_dbt.data; - ctx->del_ids = g_list_append (ctx->del_ids, strdup(id)); + ctx->del_ids = g_list_append (ctx->del_ids, strdup (id)); } } -- cgit