aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/small/opt.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /library/cpp/getopt/small/opt.cpp
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/small/opt.cpp')
-rw-r--r--library/cpp/getopt/small/opt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/getopt/small/opt.cpp b/library/cpp/getopt/small/opt.cpp
index 744501765c..ee44f7c77d 100644
--- a/library/cpp/getopt/small/opt.cpp
+++ b/library/cpp/getopt/small/opt.cpp
@@ -25,7 +25,7 @@ void Opt::Init(int argc, char* argv[], const char* optString, const Ion* longOpt
Opts_.Reset(new TOptsNoDefault(optString));
for (const Ion* o = longOptions; o != nullptr && o->name != nullptr; ++o) {
TOpt* opt;
- if ((unsigned)o->val < 0x80 && isalnum(o->val)) {
+ if ((unsigned)o->val < 0x80 && isalnum(o->val)) {
opt = &Opts_->CharOption(char(o->val));
opt->AddLongName(o->name);
} else {
@@ -73,7 +73,7 @@ int Opt::Get(int* longOptionIndex) {
return 1;
} else {
const Ion* ion = (const Ion*)OptsParser_->CurOpt()->UserValue();
- if (longOptionIndex) {
+ if (longOptionIndex) {
*longOptionIndex = int(ion - Ions_);
}
char c = OptsParser_->CurOpt()->GetCharOr0();