[BACK]Return to apropos_db.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/apropos_db.c between version 1.17 and 1.18

version 1.17, 2011/12/01 23:46:26 version 1.18, 2011/12/01 23:55:58
Line 24 
Line 24 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include <arpa/inet.h>  
   
 #ifdef __linux__  #ifdef __linux__
 # include <db_185.h>  # include <db_185.h>
 #else  #else
Line 177  btree_read(const DBT *k, const DBT *v, 
Line 175  btree_read(const DBT *k, const DBT *v, 
   
         vp = v->data;          vp = v->data;
         norm_string((const char *)k->data, mc, buf);          norm_string((const char *)k->data, mc, buf);
         dbv->rec = ntohl(vp->rec);          dbv->rec = betoh32(vp->rec);
         dbv->mask = vp->mask;          dbv->mask = betoh64(vp->mask);
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb