mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
- Allow to use GNU dbm for storage of virtual password tables - Define LICENSE and install the usual set of documentation files - Remove useless .if defined(PREFIX) check added back in r205864 Reported by: pkg-fallout
11 lines
471 B
C++
11 lines
471 B
C++
--- lib/vpwtable/gdbm_exists.cc.orig 2002-11-20 15:54:44 UTC
|
|
+++ lib/vpwtable/gdbm_exists.cc
|
|
@@ -23,7 +23,7 @@ bool vpwtable::exists(const mystring& name) const
|
|
GDBM_FILE db = gdbm_open((char*)filename.c_str(), 0, GDBM_READER, 0, 0);
|
|
if(!db)
|
|
return false;
|
|
- datum key = { (char*)name.c_str(), name.length() };
|
|
+ datum key = { (char*)name.c_str(), static_cast<int>(name.length()) };
|
|
bool result = gdbm_exists(db, key);
|
|
gdbm_close(db);
|
|
return result;
|