From 3db9e7af637e84b58ad711f67e6c5bffa44048ff Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 29 May 2013 23:15:11 +0000 Subject: Trivial sync to bsd.lv: Kristaps changed the size member of struct manpaths from int to size_t. No functional change. --- usr.bin/mandoc/manpath.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/mandoc/manpath.c') diff --git a/usr.bin/mandoc/manpath.c b/usr.bin/mandoc/manpath.c index 5dfdc681e22..a22c23e3113 100644 --- a/usr.bin/mandoc/manpath.c +++ b/usr.bin/mandoc/manpath.c @@ -1,4 +1,4 @@ -/* $Id: manpath.c,v 1.5 2012/12/04 02:24:47 deraadt Exp $ */ +/* $Id: manpath.c,v 1.6 2013/05/29 23:15:11 schwarze Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze * Copyright (c) 2011 Kristaps Dzonsons @@ -66,7 +66,7 @@ manpath_parse(struct manpaths *dirs, const char *file, } /* Append man.conf(5) to MANPATH. */ - if (':' == defp[(int)strlen(defp) - 1]) { + if (':' == defp[strlen(defp) - 1]) { manpath_parseline(dirs, defp); manpath_manconf(dirs, file); return; @@ -110,7 +110,7 @@ manpath_add(struct manpaths *dirs, const char *dir) { char buf[PATH_MAX]; char *cp; - int i; + size_t i; if (NULL == (cp = realpath(dir, buf))) return; @@ -121,7 +121,7 @@ manpath_add(struct manpaths *dirs, const char *dir) dirs->paths = mandoc_realloc (dirs->paths, - ((size_t)dirs->sz + 1) * sizeof(char *)); + (dirs->sz + 1) * sizeof(char *)); dirs->paths[dirs->sz++] = mandoc_strdup(cp); } @@ -129,7 +129,7 @@ manpath_add(struct manpaths *dirs, const char *dir) void manpath_free(struct manpaths *p) { - int i; + size_t i; for (i = 0; i < p->sz; i++) free(p->paths[i]); -- cgit v1.2.3-59-g8ed1b