diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
commit | fd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch) | |
tree | 42d2a87726d196f4db1c68489007520a4c597062 /utils/db1-ast/hash | |
parent | 9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'utils/db1-ast/hash')
-rw-r--r-- | utils/db1-ast/hash/README | 18 | ||||
-rw-r--r-- | utils/db1-ast/hash/hash_page.c | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/utils/db1-ast/hash/README b/utils/db1-ast/hash/README index f29ccf7e1..321de7d5d 100644 --- a/utils/db1-ast/hash/README +++ b/utils/db1-ast/hash/README @@ -6,17 +6,17 @@ Test Programs: All test programs which need key/data pairs expect them entered with key and data on separate lines - tcreat3.c - Takes - bucketsize (bsize), + tcreat3.c + Takes + bucketsize (bsize), fill factor (ffactor), and - initial number of elements (nelem). - Creates a hash table named hashtest containing the + initial number of elements (nelem). + Creates a hash table named hashtest containing the keys/data pairs entered from standard in. thash4.c Takes - bucketsize (bsize), - fill factor (ffactor), + bucketsize (bsize), + fill factor (ffactor), initial number of elements (nelem) bytes of cache (ncached), and file from which to read data (fname) @@ -45,7 +45,7 @@ Test Programs: NOTES: The file search.h is provided for using the hsearch compatible interface -on BSD systems. On System V derived systems, search.h should appear in +on BSD systems. On System V derived systems, search.h should appear in /usr/include. The man page ../man/db.3 explains the interface to the hashing system. @@ -63,7 +63,7 @@ file, you may lose updates since the package buffers all writes. Also, the db interface only creates a single database file. To avoid overwriting the user's original file, the suffix ".db" is appended to the file name passed to dbm_open. Additionally, if your code "knows" about the historic -.dir and .pag files, it will break. +.dir and .pag files, it will break. There is a fundamental difference between this package and the old hsearch. Hsearch requires the user to maintain the keys and data in the application's diff --git a/utils/db1-ast/hash/hash_page.c b/utils/db1-ast/hash/hash_page.c index 52571c552..6f7fabb7f 100644 --- a/utils/db1-ast/hash/hash_page.c +++ b/utils/db1-ast/hash/hash_page.c @@ -688,7 +688,7 @@ overflow_page(hashp) in_use_bits = free_bit; else in_use_bits = (hashp->BSIZE << BYTE_SHIFT) - 1; - + if (i == first_page) { bit = hashp->LAST_FREED & ((hashp->BSIZE << BYTE_SHIFT) - 1); |