From: Tom Yu Date: Tue, 30 Jul 1996 03:59:56 +0000 (+0000) Subject: * hash/hash.c, hash/hash_func.c, hash/hash_page.c: Add "static" to X-Git-Tag: krb5-1.0-beta7~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6fe419b7c1a626aff75fe73ce23e35a69277fd07;p=krb5.git * 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 --- 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; {