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

Diff for /mandoc/Attic/mdoc_hash.c between version 1.6 and 1.8

version 1.6, 2009/07/17 10:56:27 version 1.8, 2009/07/20 20:49:22
Line 14 
Line 14 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 126  mdoc_hash_find(const void *arg, const char *tmp)
Line 128  mdoc_hash_find(const void *arg, const char *tmp)
         ADJUST_MINOR(minor);          ADJUST_MINOR(minor);
   
         ind = INDEX(major, minor);          ind = INDEX(major, minor);
   
           if (ind < 0 || ind >= 26 * 3 * 52)
                   return(MDOC_MAX);
   
         if (htab[ind]) {          if (htab[ind]) {
                 slot = htab[ind] - /* LINTED */                  slot = htab[ind] - /* LINTED */

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

CVSweb