smb: make sure we use balanced arguments on qmax

Authored by sitter on Apr 6 2020, 9:47 AM.

Description

smb: make sure we use balanced arguments on qmax

previously there was opportunity for failure here when the deduced literal
type was different from the actual off_t type and qmax is very picky
about explicit input types. so, instead cast to off_t, as any int will
accommodate 0 anyway so the cast has no downsides.

BUG: 419702

Details

Committed
sitterApr 6 2020, 9:47 AM
Parents
R320:47d1b27209df: Merge branch 'release/20.04'
Branches
Unknown
Tags
Unknown
pino added a subscriber: pino.Apr 6 2020, 9:50 AM
pino added inline comments.
/smb/transfer.cpp
17

why not a simpler qMax<off_t>(...)?