Page MenuHomeFreeBSD

tests: fusefs: silence remaining unsigned/signed comparison warnings
ClosedPublic

Authored by kevans on Jan 10 2020, 9:13 PM.

Details

Reviewers
asomers
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rS356614: tests: fusefs: silence remaining unsigned/signed comparison warnings
Summary

External GCC turns these into errors; cast to long to silence them.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kevans created this revision.Jan 10 2020, 9:13 PM
asomers requested changes to this revision.Jan 10 2020, 9:19 PM

timespec.tv_nsec is defined as long, not time_t. So you should be casting to long.

This revision now requires changes to proceed.Jan 10 2020, 9:19 PM
kevans updated this revision to Diff 66603.Jan 10 2020, 9:22 PM
kevans edited the summary of this revision. (Show Details)

Whoops, fix types.

asomers accepted this revision.Jan 10 2020, 9:28 PM
This revision is now accepted and ready to land.Jan 10 2020, 9:28 PM
Owners added a reviewer: Restricted Owners Package.Jan 10 2020, 9:51 PM