Small FAQ change, nodelist investigation of aarch64 broken index
This commit is contained in:
@@ -717,7 +717,9 @@ int nodelist_putindex(s_nodelist *nlp, const s_bni *bni)
|
||||
buffer_putint(buffer + 6, bni->point);
|
||||
buffer_putint(buffer + 8, bni->hub);
|
||||
buffer_putlong(buffer + 10, bni->offset);
|
||||
|
||||
if (bni->point != 0) {
|
||||
DEB((D_NODELIST, "nodelist: findindex found point z: %d, n: %d, l: %d, p: %d, offset: %l", bni->zone, bni->net, bni->node, bni->point, bni->offset));
|
||||
}
|
||||
if( fwrite(buffer, sizeof(buffer), 1, nlp->fp_index) != 1 )
|
||||
{
|
||||
logerr("error writing nodelist index file \"%s\"", nlp->name_index);
|
||||
@@ -752,6 +754,8 @@ int nodelist_findindex(s_nodelist *nlp, s_bni *bni, s_faddr addr)
|
||||
bni->point = buffer_getint(p + 6);
|
||||
bni->hub = buffer_getint(p + 8);
|
||||
bni->offset = buffer_getlong(p + 10);
|
||||
|
||||
DEB((D_NODELIST, "nodelist: findindex found" ));
|
||||
return 0;
|
||||
}
|
||||
p += NODELIST_ENTRYSIZE;
|
||||
@@ -800,7 +804,7 @@ int nodelist_lookup_string(char *buffer, size_t buflen, s_faddr addr)
|
||||
|
||||
if( !rc )
|
||||
rc = nodelist_getstr(nlp, bni.offset, buffer, buflen);
|
||||
|
||||
|
||||
nodelist_close(nlp);
|
||||
|
||||
if( !rc )
|
||||
@@ -856,5 +860,6 @@ void nodelist_initnode(s_node *node, s_faddr addr)
|
||||
strcpy(node->sysop, "<none>");
|
||||
strcpy(node->location, "<none>");
|
||||
strcpy(node->phone, "<none>");
|
||||
strcpy(node->flags, "<none>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user