sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.16k stars 208 forks source link

Avoid compiler casting warnings by assigning to variables of the same type where possible #265

Closed RSilicon closed 1 year ago

RSilicon commented 1 year ago

This saves instructions that are related to casting as well as compiler warnings.

millert commented 1 year ago

Are you using gcc's -Wconversion or something similar to find these? Some of the changes are OK but others would break the plugin or library ABI which is not OK. Also, some of the non-trivial changes introduce bugs.

RSilicon commented 1 year ago

@millert Fixed!

RSilicon commented 1 year ago

@millert Done!

RSilicon commented 1 year ago

@millert Done!