Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/pppoatm: Restructure code to avoid possibility of integer ove…
…rflow This avoids the theoretical possibility of integer overflow in adding a constant before dividing in order to get the effect of rounding up. Instead we divide and add 1 if the original value modulo the divisor is non-zero. Signed-off-by: Paul Mackerras <[email protected]>
- Loading branch information