Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aprieger-llnw/1cfc4f76359e36ff91c50595dc832afe to your computer and use it in GitHub Desktop.
Save aprieger-llnw/1cfc4f76359e36ff91c50595dc832afe to your computer and use it in GitHub Desktop.
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/kuser/kinit.c:583:5: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if(abs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
^
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/kuser/kinit.c:583:5: note: use function 'labs' instead
if(abs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
^~~
labs
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/kuser/kinit.c:591:5: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
if(abs(cred.times.renew_till - cred.times.starttime - renew) > 30) {
^
/usr/home/aprieger/repos/freebsd_master/freebsd/crypto/heimdal/kuser/kinit.c:591:5: note: use function 'labs' instead
if(abs(cred.times.renew_till - cred.times.starttime - renew) > 30) {
^~~
labs
2 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment