From ca77ce928be2af7700297ca0767c3b4120799c2e Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 19 Jan 2017 20:49:48 +0000 Subject: [PATCH] CompilePhonemeData2: Inline the single use of the source parameter. --- src/libespeak-ng/compiledata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index fa274c06..abcb3c8d 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2005 to 2014 by Jonathan Duddington * email: jonsd@users.sourceforge.net - * Copyright (C) 2013-2016 Reece H. Dunn + * Copyright (C) 2013-2017 Reece H. Dunn * * 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 @@ -2638,7 +2638,7 @@ static void CompilePhonemeFiles() phoneme_tab2[n_phcodes+1].mnemonic = 0; // terminator } -static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espeak_ng_ERROR_CONTEXT *context) +static espeak_ng_STATUS CompilePhonemeData2(FILE *log, espeak_ng_ERROR_CONTEXT *context) { char fname[sizeof(path_home)+40]; @@ -2649,7 +2649,7 @@ static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espea f_errors = log; - strncpy0(current_fname, source, sizeof(current_fname)); + strncpy0(current_fname, "phonemes", sizeof(current_fname)); sprintf(fname, "%s/../phsource/phonemes", path_home); fprintf(log, "Compiling phoneme data: %s\n", fname); @@ -3068,7 +3068,7 @@ espeak_ng_STATUS espeak_ng_CompilePhonemeData(long rate, FILE *log, espeak_ng_ER WavegenInit(rate, 0); WavegenSetVoice(voice); - return CompilePhonemeData2("phonemes", log, context); + return CompilePhonemeData2(log, context); } #pragma GCC visibility pop