summaryrefslogtreecommitdiff
path: root/mysys/hash.c
diff options
context:
space:
mode:
authorjoerg@mysql.com <>2005-03-04 11:26:08 +0100
committerjoerg@mysql.com <>2005-03-04 11:26:08 +0100
commit6ccbe89d527b6a8a35f17c45c4b597ee3853410b (patch)
tree77898504949e95a82cffbfd676976a597ae0bccb /mysys/hash.c
parent136c1ea181043bf3dcf13dd3e635535dd27f9597 (diff)
downloadmariadb-git-6ccbe89d527b6a8a35f17c45c4b597ee3853410b.tar.gz
Qualify 'inline' functions as 'static inline' to please the Sun C compiler.
Diffstat (limited to 'mysys/hash.c')
-rw-r--r--mysys/hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/hash.c b/mysys/hash.c
index 973f6f7cefa..3ee575a9c98 100644
--- a/mysys/hash.c
+++ b/mysys/hash.c
@@ -87,7 +87,7 @@ void hash_free(HASH *hash)
handle inline functions that are not defined as native types
*/
-inline char*
+static inline char*
hash_key(HASH *hash,const byte *record,uint *length,my_bool first)
{
if (hash->get_key)
@@ -183,8 +183,8 @@ uint calc_hashnr_caseup(const byte *key, uint len)
/* for compilers which can not handle inline */
-#if !defined(__SUNPRO_C) && !defined(__USLC__) && !defined(__sgi)
-inline
+#if !defined(__USLC__) && !defined(__sgi)
+static inline
#endif
unsigned int rec_hashnr(HASH *hash,const byte *record)
{