Skip to content

attr_fn_tv.c:339: bad compare ? #471

@dcb314

Description

@dcb314

gcc can be made to say:

attr_fn_tv.c:339:14: warning: duplicated 'if' condition [-Wduplicated-cond]

Source code is

    if (attr->at_val.at_timeval.tv_usec < with->at_val.at_timeval.tv_usec)
      {
            return(-1);
      }
    else if (attr->at_val.at_timeval.tv_usec < with->at_val.at_timeval.tv_usec)

Clearly, the second "<" should be ">"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions