Make makeLinkInfo() static

This commit is contained in:
Ivan Skytte Jørgensen
2016-06-03 17:06:00 +02:00
parent dbfd6c2e68
commit 785b23f239
2 changed files with 16 additions and 18 deletions

@ -11,6 +11,21 @@
#include <valgrind/memcheck.h>
#endif
static LinkInfo *makeLinkInfo ( char *coll ,
int32_t ip ,
int32_t siteNumInlinks ,
Msg20Reply **replies ,
int32_t numReplies ,
// if link spam give this weight
int32_t spamWeight ,
bool oneVotePerIpTop ,
int64_t linkeeDocId ,
int32_t lastUpdateTime ,
bool onlyNeedGoodInlinks ,
int32_t niceness ,
class Msg25 *msg25 ,
SafeBuf *linkInfoBuf ) ;
Linkdb g_linkdb;
Linkdb g_linkdb2;
@ -2957,7 +2972,7 @@ bool Msg25::addNote ( const char *note , int32_t noteLen , int64_t docId ) {
// LinkInfo's Inlinks to get their weights, etc.
// . returns the LinkInfo on success
// . returns NULL and sets g_errno on error
LinkInfo *makeLinkInfo ( char *coll ,
static LinkInfo *makeLinkInfo ( char *coll ,
int32_t ip ,
int32_t siteNumInlinks ,
Msg20Reply **replies ,

@ -899,23 +899,6 @@ class Inlink {
char m_buf[MAXINLINKSTRINGBUFSIZE] ;
} __attribute__((packed, aligned(4)));
// . this function is normally called like "info = makeLinkInfo()"
// to create a new LinkInfo based on a bunch of Msg20 replies
// . returns NULL and sets g_errno on error
LinkInfo *makeLinkInfo ( char *coll ,
int32_t ip ,
int32_t siteNumInlinks ,
Msg20Reply **replies ,
int32_t numReplies ,
// if link spam give this weight
int32_t spamWeight ,
bool oneVotePerIpTop ,
int64_t linkeeDocId ,
int32_t lastUpdateTime ,
bool onlyNeedGoodInlinks ,
int32_t niceness ,
class Msg25 *msg25 ,
SafeBuf *linkInfoBuf ) ;
////////
//