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

Inconsistent use of GSF_MAX_OPEN_FILES #67

Open
schwehr opened this issue Jul 19, 2015 · 0 comments
Open

Inconsistent use of GSF_MAX_OPEN_FILES #67

schwehr opened this issue Jul 19, 2015 · 0 comments

Comments

@schwehr
Copy link
Owner

schwehr commented Jul 19, 2015

0 is used or not?

grep -h GSF_MAX_OPEN_FILES *.c | sort -u
        for (fileTableIndex=0; fileTableIndex<GSF_MAX_OPEN_FILES; fileTableIndex++)
    for (fileTableIndex=0; fileTableIndex<GSF_MAX_OPEN_FILES; fileTableIndex++)
    if ((handle < 1) || (handle > GSF_MAX_OPEN_FILES))
    if (fileTableIndex == GSF_MAX_OPEN_FILES)
    if (fileTableIndex >= GSF_MAX_OPEN_FILES) {
    if (numOpenFiles >= GSF_MAX_OPEN_FILES)
  for (fileTableIndex=0; fileTableIndex<GSF_MAX_OPEN_FILES; fileTableIndex++)
  if (fileTableIndex == GSF_MAX_OPEN_FILES)
  if (numOpenFiles >= GSF_MAX_OPEN_FILES)
 *  GSF_MAX_OPEN_FILES files may be open by an application at a time.
 *  to GSF_MAX_OPEN_FILES files may be open by an application at a time.
static GSF_FILE_TABLE gsfFileTable[GSF_MAX_OPEN_FILES];
static short    arraySize[GSF_MAX_OPEN_FILES][GSF_MAX_PING_ARRAY_SUBRECORDS];
static short   *samplesArraySize[GSF_MAX_OPEN_FILES];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant