[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.30 and 1.32.2.1

version 1.30, 2012/03/24 00:31:55 version 1.32.2.1, 2013/10/02 21:03:26
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 19 
Line 19 
 #include "config.h"  #include "config.h"
 #endif  #endif
   
   #include <sys/param.h>
   
 #include <assert.h>  #include <assert.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <regex.h>  #include <regex.h>
Line 35 
Line 37 
 # include <libkern/OSByteOrder.h>  # include <libkern/OSByteOrder.h>
 # include <db.h>  # include <db.h>
 #else  #else
   # include <sys/endian.h>
 # include <db.h>  # include <db.h>
 #endif  #endif
   
Line 426  apropos_search(int pathsz, char **paths, const struct 
Line 429  apropos_search(int pathsz, char **paths, const struct 
          */           */
   
         for (i = 0; i < pathsz; i++) {          for (i = 0; i < pathsz; i++) {
                   assert('/' == paths[i][0]);
                 if (chdir(paths[i]))                  if (chdir(paths[i]))
                         continue;                          continue;
                 if (single_search(&tree, opts, expr, terms, mc, i))                  if (single_search(&tree, opts, expr, terms, mc, i))

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.32.2.1

CVSweb