diff --git a/icu4c/source/tools/genrb/genrb.c b/icu4c/source/tools/genrb/genrb.c index 1077c89290..05205e3350 100644 --- a/icu4c/source/tools/genrb/genrb.c +++ b/icu4c/source/tools/genrb/genrb.c @@ -230,7 +230,7 @@ processFile(const char *filename, const char *cp, const char *inputDir, const ch ucbuf = ucbuf_open(in,cp,status); /* Parse the data into an SRBRoot */ - data = parse(ucbuf, cp, inputDir, status); + data = parse(ucbuf, inputDir, status); /* Determine the target rb filename */ rbname = make_res_filename(filename, outputDir, status); diff --git a/icu4c/source/tools/genrb/parse.c b/icu4c/source/tools/genrb/parse.c index 2003149074..61d8d2ee5f 100644 --- a/icu4c/source/tools/genrb/parse.c +++ b/icu4c/source/tools/genrb/parse.c @@ -212,7 +212,7 @@ int32_t lineCount = 0; char lastTag[200] = ""; struct SRBRoot* -parse(UCHARBUF* buf, const char *cp, const char *inputDir, +parse(UCHARBUF* buf, const char *inputDir, UErrorCode *status) { enum ETokenType type; @@ -436,7 +436,6 @@ parse(UCHARBUF* buf, const char *cp, const char *inputDir, importFile = T_FileStream_open(fileName, "rb"); } else { char *openFileName = NULL; - int32_t dirlen = uprv_strlen(inputDir); int32_t filelen = uprv_strlen(fileName); if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { openFileName = (char *) uprv_malloc(dirlen+filelen+2); diff --git a/icu4c/source/tools/genrb/parse.h b/icu4c/source/tools/genrb/parse.h index 20ae33479d..350198db52 100644 --- a/icu4c/source/tools/genrb/parse.h +++ b/icu4c/source/tools/genrb/parse.h @@ -24,6 +24,6 @@ #include "ucbuf.h" /* Parse a ResourceBundle text file */ -struct SRBRoot* parse(UCHARBUF* buf, const char *cp, const char* inputDir, UErrorCode *status); +struct SRBRoot* parse(UCHARBUF* buf, const char* inputDir, UErrorCode *status); #endif