FreeBSD Bugzilla – Attachment 153190 Details for
Bug 42422
[libc] [patch] dbm_delete returns -1 instead of 1 when the key does not exist in the database.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Update patch
db-ndbm.diff (text/plain), 457 bytes, created by
Pedro F. Giffuni
on 2015-02-19 19:53:28 UTC
(
hide
)
Description:
Update patch
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2015-02-19 19:53:28 UTC
Size:
457 bytes
patch
obsolete
>Index: lib/libc/db/hash/ndbm.c >=================================================================== >--- lib/libc/db/hash/ndbm.c (revision 279011) >+++ lib/libc/db/hash/ndbm.c (working copy) >@@ -164,16 +164,11 @@ > DBM *db; > datum key; > { >- int status; > DBT dbtkey; > > dbtkey.data = key.dptr; > dbtkey.size = key.dsize; >- status = (db->del)(db, &dbtkey, 0); >- if (status) >- return (-1); >- else >- return (0); >+ return ((db->del)(db, &dbtkey, 0)); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42422
:
24863
| 153190