Dimitry Andric b9cfeb20f6 Fix the following -Werror warnings from clang 3.5.0, while building
bsnmpd's snmp_hostres module:

usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:204:20: note: use function 'labs' instead
        str[9] = (u_char)(abs(tm->tm_gmtoff) / 3600);
                          ^~~
                          labs
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: error: absolute value function 'abs' given an argument of type 'const long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c:205:22: note: use function 'labs' instead
        str[10] = (u_char)((abs(tm->tm_gmtoff) % 3600) / 60);
                            ^~~
                            labs

Since tm::tm_gmtoff is a long, use labs(3) instead.

MFC after:	3 days
2014-11-22 23:50:18 +00:00
..
2014-10-02 19:11:18 +00:00
2014-11-22 16:48:29 +00:00
2014-11-19 18:19:21 +00:00
2014-07-29 19:49:27 +00:00
2014-07-17 06:57:26 +00:00
2014-07-29 19:49:27 +00:00
2014-09-28 11:32:46 +00:00
2014-07-07 00:27:09 +00:00
2014-09-19 23:38:44 +00:00
2014-07-18 06:48:02 +00:00
2014-11-06 18:50:59 +00:00
2014-10-28 14:11:54 +00:00
2014-10-27 15:50:47 +00:00
2014-10-11 20:46:06 +00:00
2014-09-01 16:12:29 +00:00
2014-11-11 19:45:14 +00:00
2014-09-08 09:16:07 +00:00
2014-10-18 08:07:17 +00:00