Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct size for struct #1355

Merged
merged 1 commit into from
Dec 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/XrdOuc/XrdOucPsx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ bool XrdOucPsx::ParseSet(XrdSysError *Eroute, XrdOucStream &Config)
{
char kword[256], *val;
int kval, noGo;
static struct {const char *Sopt; const char *Copt; int isT;} Sopts[] =
static struct sopts {const char *Sopt; const char *Copt; int isT;} Sopts[] =
{
{"ConnectTimeout", "ConnectionWindow",1}, // Default 120
{"ConnectionRetry", "ConnectionRetry",1}, // Default 5
Expand Down Expand Up @@ -732,7 +732,7 @@ bool XrdOucPsx::ParseSet(XrdSysError *Eroute, XrdOucStream &Config)
{"TransactionTimeout", "",1},
{"WorkerThreads", "WorkerThreads",0} // Set To 64
};
int i, numopts = sizeof(Sopts)/( sizeof(const char *) );
int i, numopts = sizeof(Sopts)/sizeof(struct sopts);

if (!(val = Config.GetWord()))
{Eroute->Emsg("Config", "setopt keyword not specified"); return false;}
Expand Down