diff options
author | Colin Watson <cjwatson@debian.org> | 2019-08-23 22:55:56 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-08-23 23:40:47 +0100 |
commit | 036aa910ea000d716bcf0f4bcbcee3a54a848be7 (patch) | |
tree | 5e392c8c7390c66488a86f386543e6256e66a796 /include | |
parent | 252d7cbc2328b27457aafcbd6fa5958a8be9fded (diff) |
Use MYDBM_FILE->name for error messages
We previously used the global "database" variable, but we were either
also passing a MYDBM_FILE around already or could easily do so, and it's
cleaner to get the file name from there now that it's consistently
available on all backends.
* libdb/db_lookup.c (gripe_corrupt_data): Add dbf parameter. Get file
name from dbf->name rather than from the global database variable.
Update all callers.
(gripe_replace_key, split_data, split_content): Add dbf parameter.
Update all callers.
(dblookup_pattern): Get file name from dbf->name rather than from the
global database variable.
* libdb/db_ver.c (dbver_rd, dbver_wr): Get file name from dbfile->name
rather than from the global database variable.
* libdb/db_storage.h (split_content, gripe_corrupt_data,
gripe_replace_key): Update prototypes.
* src/check_mandirs.c (sanity_check_db): Get file name from dbf->name
rather than from the global database variable.
* src/whatis.c (do_apropos): Likewise.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions