From b641f89e0854f71e850ba1353f4f1b96e04e4385 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 23 May 2005 10:46:22 +0000 Subject: Import of stripped down GNU texinfo 4.8 --- contrib/texinfo/lib/substring.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'contrib/texinfo/lib/substring.c') diff --git a/contrib/texinfo/lib/substring.c b/contrib/texinfo/lib/substring.c index 7d5cda7bcae2..9e59fceefea2 100644 --- a/contrib/texinfo/lib/substring.c +++ b/contrib/texinfo/lib/substring.c @@ -1,7 +1,7 @@ /* substring.c -- extract substring. - $Id: substring.c,v 1.1 2002/08/25 23:38:38 karl Exp $ + $Id: substring.c,v 1.2 2004/04/11 17:56:46 karl Exp $ - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,13 +20,11 @@ #include "system.h" char * -substring (start, end) - char *start; - char *end; +substring (const char *start, const char *end) { char *result = xmalloc (end - start + 1); char *scan_result = result; - char *scan = start; + const char *scan = start; while (scan < end) *scan_result++ = *scan++; -- cgit v1.2.3