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

Diff for /mandoc/dba.c between version 1.4 and 1.6

version 1.4, 2016/08/05 21:38:11 version 1.6, 2016/08/17 18:10:39
Line 17 
Line 17 
  * Allocation-based version of the mandoc database, for read-write access.   * Allocation-based version of the mandoc database, for read-write access.
  * The interface is defined in "dba.h".   * The interface is defined in "dba.h".
  */   */
   #include "config.h"
   
 #include <sys/types.h>  #include <sys/types.h>
   #if HAVE_ENDIAN
 #include <endian.h>  #include <endian.h>
   #elif HAVE_SYS_ENDIAN
   #include <sys/endian.h>
   #elif HAVE_NTOHL
   #include <arpa/inet.h>
   #endif
 #include <errno.h>  #include <errno.h>
 #include <stdint.h>  #include <stdint.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 169  dba_page_add(struct dba_array *page, int32_t ie, const
Line 177  dba_page_add(struct dba_array *page, int32_t ie, const
         if (ie == DBP_ARCH) {          if (ie == DBP_ARCH) {
                 if (entries == NULL)                  if (entries == NULL)
                         return;                          return;
                 if (str == NULL) {                  if (str == NULL || *str == '\0') {
                         dba_array_free(entries);                          dba_array_free(entries);
                         dba_array_set(page, DBP_ARCH, NULL);                          dba_array_set(page, DBP_ARCH, NULL);
                         return;                          return;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

CVSweb