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 | |||
@@ -275,7 +275,7 @@ mu_dbm_firstkey (DBM_FILE db) | |||
275 | key.data = NULL; | 275 | key.data = NULL; |
276 | key.size = 0; | 276 | key.size = 0; |
277 | if (ret == DB_NOTFOUND) | 277 | if (ret == DB_NOTFOUND) |
278 | errno = ENOENT; | 278 | errno = MU_ERR_NOENT; |
279 | else | 279 | else |
280 | errno = ret; | 280 | errno = ret; |
281 | } | 281 | } |
@@ -299,7 +299,7 @@ mu_dbm_nextkey (DBM_FILE db, DBM_DATUM pkey /*unused*/) | |||
299 | key.data = NULL; | 299 | key.data = NULL; |
300 | key.size = 0; | 300 | key.size = 0; |
301 | if (ret == DB_NOTFOUND) | 301 | if (ret == DB_NOTFOUND) |
302 | errno = ENOENT; | 302 | errno = MU_ERR_NOENT; |
303 | else | 303 | else |
304 | errno = ret; | 304 | errno = ret; |
305 | } | 305 | } |