aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-08-21 00:25:12 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-08-21 00:25:12 +0800
commit0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1 (patch)
tree8080d207ce67b4a7ace341c65ab3c4f15c70787e /addressbook/backend
parent8534057ff57cc50024fd438e287370191d77b43a (diff)
downloadgsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.gz
gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.zst
gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.zip
use DB_NOTFOUND const
2001-08-20 JP Rosevear <jpr@ximian.com> * backend/pas/pas-backend-file.c (pas_backend_file_changes_foreach_key): use DB_NOTFOUND const svn path=/trunk/; revision=12311
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
1 files changed, 2 insertions, 2 deletions
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));
}
}