diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-02 11:04:07 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-02 11:04:07 +0000 |
commit | 12be7d8c26495b31e440a2a1217c558b46498662 (patch) | |
tree | 349961422dd8ff33e0cd54bdb7e29ca0fa3ce907 /lib | |
parent | 74a4478087159a708de6cf5295a66bee91394cf1 (diff) | |
download | mailutils-12be7d8c26495b31e440a2a1217c558b46498662.tar.gz mailutils-12be7d8c26495b31e440a2a1217c558b46498662.tar.bz2 |
Revise the usage of return codes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mu_dbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mu_dbm.c b/lib/mu_dbm.c index 618d2a901..22c812b5d 100644 --- a/lib/mu_dbm.c +++ b/lib/mu_dbm.c @@ -272,13 +272,13 @@ mu_dbm_firstkey (DBM_FILE db) if ((ret = db->dbc->c_get(db->dbc, &key, &data, DB_FIRST)) != 0) { key.data = NULL; key.size = 0; if (ret == DB_NOTFOUND) - errno = ENOENT; + errno = MU_ERR_NOENT; else errno = ret; } return key; } @@ -296,13 +296,13 @@ mu_dbm_nextkey (DBM_FILE db, DBM_DATUM pkey /*unused*/) if ((ret = db->dbc->c_get(db->dbc, &key, &data, DB_NEXT)) != 0) { key.data = NULL; key.size = 0; if (ret == DB_NOTFOUND) - errno = ENOENT; + errno = MU_ERR_NOENT; else errno = ret; } return key; } |