summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1996-07-30 03:59:56 +0000
committerTom Yu <tlyu@mit.edu>1996-07-30 03:59:56 +0000
commit6fe419b7c1a626aff75fe73ce23e35a69277fd07 (patch)
tree7ebb1699c99214c1625ed4ef40eafcdfa1b6a0f2 /src
parentca12f2d5e537c63e56bb267c1cfb7424ea636b0e (diff)
* hash/hash.c, hash/hash_func.c, hash/hash_page.c: Add "static" to
some function defn's that need them; they were prototyped as static but not defined as static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8863 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/db2/hash/hash.c8
-rw-r--r--src/util/db2/hash/hash_func.c8
-rw-r--r--src/util/db2/hash/hash_page.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/src/util/db2/hash/hash.c b/src/util/db2/hash/hash.c
index 017138606..2811688ad 100644
--- a/src/util/db2/hash/hash.c
+++ b/src/util/db2/hash/hash.c
@@ -414,7 +414,7 @@ init_htab(hashp, nelem)
/*
* Functions to get/put hash header. We access the file directly.
*/
-u_int32_t
+static u_int32_t
hget_header(hashp, page_size)
HTAB *hashp;
u_int32_t page_size;
@@ -443,7 +443,7 @@ hget_header(hashp, page_size)
return (num_copied);
}
-void
+static void
hput_header(hashp)
HTAB *hashp;
{
@@ -836,7 +836,7 @@ __cursor_creat(dbp)
return new_curs;
}
-int32_t
+static int32_t
cursor_get(dbp, cursorp, key, val, flags)
const DB *dbp;
CURSOR *cursorp;
@@ -909,7 +909,7 @@ cursor_get(dbp, cursorp, key, val, flags)
return (0);
}
-int32_t
+static int32_t
cursor_delete(dbp, cursor, flags)
const DB *dbp;
CURSOR *cursor;
diff --git a/src/util/db2/hash/hash_func.c b/src/util/db2/hash/hash_func.c
index efa2a2843..0fddb4456 100644
--- a/src/util/db2/hash/hash_func.c
+++ b/src/util/db2/hash/hash_func.c
@@ -62,7 +62,7 @@ u_int32_t (*__default_hash) __P((const void *, size_t)) = hash4;
#define PRIME1 37
#define PRIME2 1048583
-u_int32_t
+static u_int32_t
hash1(key, len)
const void *key;
size_t len;
@@ -84,7 +84,7 @@ hash1(key, len)
*/
#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
-u_int32_t
+static u_int32_t
hash2(key, len)
const void *key;
size_t len;
@@ -112,7 +112,7 @@ hash2(key, len)
*
* Ozan Yigit's original sdbm hash.
*/
-u_int32_t
+static u_int32_t
hash3(key, len)
const void *key;
size_t len;
@@ -153,7 +153,7 @@ hash3(key, len)
}
/* Chris Torek's hash function. */
-u_int32_t
+static u_int32_t
hash4(key, len)
const void *key;
size_t len;
diff --git a/src/util/db2/hash/hash_page.c b/src/util/db2/hash/hash_page.c
index 8622075d1..55acac81a 100644
--- a/src/util/db2/hash/hash_page.c
+++ b/src/util/db2/hash/hash_page.c
@@ -252,7 +252,7 @@ putpair(p, key, val)
* Returns the index of the next non-bigkey pair after n on the page.
* Returns -1 if there are no more non-big things on the page.
*/
-indx_t
+static indx_t
#ifdef __STDC__
next_realkey(PAGE16 * pagep, indx_t n)
#else
@@ -628,7 +628,7 @@ __addel(hashp, item_info, key, val, num_items, expanding)
* Special __addel used in big splitting; this one just puts the pointer
* to an already-allocated big page in the appropriate bucket.
*/
-int32_t
+static int32_t
#ifdef __STDC__
add_bigptr(HTAB * hashp, ITEM_INFO * item_info, indx_t big_pgno)
#else
@@ -979,7 +979,7 @@ __get_page(hashp, addr, addr_type)
return (pagep);
}
-void
+static void
swap_page_header_in(pagep)
PAGE16 *pagep;
{
@@ -998,7 +998,7 @@ swap_page_header_in(pagep)
}
}
-void
+static void
swap_page_header_out(pagep)
PAGE16 *pagep;
{