diff options
Diffstat (limited to 'contrib/ntp/lib/isc/result.c')
-rw-r--r-- | contrib/ntp/lib/isc/result.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/ntp/lib/isc/result.c b/contrib/ntp/lib/isc/result.c index 520f161..da57272 100644 --- a/contrib/ntp/lib/isc/result.c +++ b/contrib/ntp/lib/isc/result.c @@ -172,7 +172,7 @@ const char * isc_result_totext(isc_result_t result) { resulttable *table; const char *txt, *default_text; - int index; + int idx; initialize(); @@ -183,15 +183,15 @@ isc_result_totext(isc_result_t result) { table != NULL; table = ISC_LIST_NEXT(table, link)) { if (result >= table->base && result <= table->last) { - index = (int)(result - table->base); - default_text = table->text[index]; + idx = (int)(result - table->base); + default_text = table->text[idx]; /* - * Note: we use 'index + 1' as the message number - * instead of index because isc_msgcat_get() requires + * Note: we use 'idx + 1' as the message number + * instead of idx because isc_msgcat_get() requires * the message number to be > 0. */ txt = isc_msgcat_get(table->msgcat, table->set, - index + 1, default_text); + idx + 1, default_text); break; } } |