summaryrefslogtreecommitdiff
path: root/src/common/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/db.c')
-rw-r--r--src/common/db.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/db.c b/src/common/db.c
index a748cba5a..204c6d2ea 100644
--- a/src/common/db.c
+++ b/src/common/db.c
@@ -2743,7 +2743,7 @@ void* linkdb_search( struct linkdb_node** head, void *key)
while( node ) {
if( node->key == key ) {
if( node->prev && n > 5 ) {
- // 処理効率改善の為にheadに移動させる
+ //Moving the head in order to improve processing efficiency
if(node->prev) node->prev->next = node->next;
if(node->next) node->next->prev = node->prev;
node->next = *head;
@@ -2790,7 +2790,7 @@ void linkdb_replace( struct linkdb_node** head, void *key, void *data )
while( node ) {
if( node->key == key ) {
if( node->prev && n > 5 ) {
- // 処理効率改善の為にheadに移動させる
+ //Moving the head in order to improve processing efficiency
if(node->prev) node->prev->next = node->next;
if(node->next) node->next->prev = node->prev;
node->next = *head;
@@ -2804,7 +2804,7 @@ void linkdb_replace( struct linkdb_node** head, void *key, void *data )
node = node->next;
n++;
}
- // 見つからないので挿入
+ //Insert because it can not find
linkdb_insert( head, key, data );
}