You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2006/10/16 02:24:45 UTC
svn commit: r464331 - /lucene/lucy/trunk/charmonizer/charmonize.c
Author: marvin
Date: Sun Oct 15 17:24:43 2006
New Revision: 464331
URL: http://svn.apache.org/viewvc?view=rev&rev=464331
Log:
Remove an unused var, an unused function declaration, and some useless nulls.
Modified:
lucene/lucy/trunk/charmonizer/charmonize.c
Modified: lucene/lucy/trunk/charmonizer/charmonize.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/charmonize.c?view=diff&rev=464331&r1=464330&r2=464331
==============================================================================
--- lucene/lucy/trunk/charmonizer/charmonize.c (original)
+++ lucene/lucy/trunk/charmonizer/charmonize.c Sun Oct 15 17:24:43 2006
@@ -26,11 +26,6 @@
static char*
extract_delim(char *source, size_t source_len, const char *tag_name);
-/* Assign the location where the config file will be written.
- */
-static void
-set_outpath(char* path);
-
/* Start the config file.
*/
static void
@@ -76,7 +71,6 @@
char*
init(int argc, char **argv)
{
- int i;
char *outpath, *compiler, *ccflags;
char *infile_contents;
size_t infile_len;
@@ -117,8 +111,8 @@
/* sanity check, then create delimiter strings to match against */
if (tag_name_len > 95)
die("tag name too long: '%s'");
- sprintf(opening_delim, "<%s>\0", tag_name);
- sprintf(closing_delim, "</%s>\0", tag_name);
+ sprintf(opening_delim, "<%s>", tag_name);
+ sprintf(closing_delim, "</%s>", tag_name);
/* find opening <delimiter> */
for (start = source; start < limit; start++) {