Skip to content

Commit ce0678f

Browse files
grooverdansvoj
authored andcommitted
hash (storage): hp_hashnr is local
Remove 'register' quantifer from args too.
1 parent 7fa67e3 commit ce0678f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage/heap/heapdef.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ extern uchar *hp_search(HP_INFO *info,HP_KEYDEF *keyinfo,const uchar *key,
8181
uint nextflag);
8282
extern uchar *hp_search_next(HP_INFO *info, HP_KEYDEF *keyinfo,
8383
const uchar *key, HASH_INFO *pos);
84-
extern ulong hp_hashnr(HP_KEYDEF *keyinfo,const uchar *key);
8584
extern ulong hp_rec_hashnr(HP_KEYDEF *keyinfo,const uchar *rec);
8685
extern void hp_movelink(HASH_INFO *pos,HASH_INFO *next_link,
8786
HASH_INFO *newlink);

storage/heap/hp_hash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "heapdef.h"
2020
#include <m_ctype.h>
2121

22+
static ulong hp_hashnr(HP_KEYDEF *keydef, const uchar *key);
2223
/*
2324
Find out how many rows there is in the given range
2425
@@ -211,7 +212,7 @@ void hp_movelink(HASH_INFO *pos, HASH_INFO *next_link, HASH_INFO *newlink)
211212

212213
/* Calc hashvalue for a key */
213214

214-
ulong hp_hashnr(register HP_KEYDEF *keydef, register const uchar *key)
215+
static ulong hp_hashnr(HP_KEYDEF *keydef, const uchar *key)
215216
{
216217
/*register*/
217218
ulong nr=1, nr2=4;

0 commit comments

Comments
 (0)