X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Finspect.c;h=98329ee59151b805ffbcb773fa6126a13951941b;hb=47963bc9cc0b47af0541010a4fa14260405acaa5;hp=2ca54d2296fce5370504c1085cbcd7ac1b51ad3a;hpb=2f6ec8b4da27c550e2c7187fd17df28f1bdd51a7;p=libguestfs.git diff --git a/fish/inspect.c b/fish/inspect.c index 2ca54d2..98329ee 100644 --- a/fish/inspect.c +++ b/fish/inspect.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -43,14 +43,14 @@ free_strings (char **argv) free (argv); } -static int +static size_t count_strings (char *const *argv) { - int c; + size_t i; - for (c = 0; argv[c]; ++c) + for (i = 0; argv[i]; ++i) ; - return c; + return i; } static int