dim be91514db3 MFC r305389:
With clang 3.9.0, compiling sys/netinet/igmp.c results in the following
warning:

sys/netinet/igmp.c:546:21: error: implicit conversion from 'int' to 'char' changes value from 148 to -108 [-Werror,-Wconstant-conversion]
        p->ipopt_list[0] = IPOPT_RA;    /* Router Alert Option */
                         ~ ^~~~~~~~
sys/netinet/ip.h:153:19: note: expanded from macro 'IPOPT_RA'
#define IPOPT_RA                148             /* router alert */
                                ^~~

This is because ipopt_list is an array of char, so IPOPT_RA is wrapped
to a negative value.  It would be nice to change ipopt_list to an array
of u_char, but it changes the signature of the public struct ipoption,
so add an explicit cast to suppress the warning.

Reviewed by:	imp
Differential Revision: https://reviews.freebsd.org/D7777
2016-09-07 19:25:08 +00:00
..
2016-01-11 23:37:31 +00:00
2016-09-07 19:25:08 +00:00
2015-06-06 13:26:13 +00:00
2014-02-03 03:31:35 +00:00
2015-12-02 17:26:37 +00:00
2016-02-08 00:07:01 +00:00
2015-02-15 13:57:44 +00:00
2015-02-02 11:42:35 +00:00
2015-09-18 17:29:24 +00:00
2015-06-06 13:26:13 +00:00
2015-06-02 03:14:42 +00:00
2016-05-23 16:20:50 +00:00
2015-11-26 02:24:45 +00:00
2014-10-09 23:46:17 +00:00
2014-10-09 23:45:26 +00:00
2015-06-17 07:21:43 +00:00
2015-07-31 03:40:09 +00:00
2014-05-26 22:54:15 +00:00
2016-02-25 18:46:06 +00:00
2016-01-16 17:56:06 +00:00
2014-09-18 09:49:49 +00:00
2016-02-25 18:46:06 +00:00
2016-06-27 22:10:07 +00:00
2016-02-25 18:46:06 +00:00
2016-01-16 16:46:00 +00:00
2016-01-17 12:39:35 +00:00
2016-01-16 12:47:28 +00:00
2016-02-25 18:46:06 +00:00
2015-06-20 08:25:27 +00:00
2016-01-16 12:33:45 +00:00
2016-02-25 18:46:06 +00:00
2016-02-03 14:04:07 +00:00
2016-02-25 18:46:06 +00:00
2016-02-25 18:46:06 +00:00
2015-05-29 12:54:30 +00:00
2016-01-16 12:15:07 +00:00
2016-01-16 14:41:44 +00:00
2016-01-16 14:46:27 +00:00
2016-02-25 18:46:06 +00:00
2016-02-25 18:46:06 +00:00
2016-01-16 18:05:24 +00:00
2016-01-17 14:10:37 +00:00
2016-02-03 14:04:07 +00:00
2016-01-16 16:46:00 +00:00
2016-02-25 18:46:06 +00:00
2016-01-17 12:15:41 +00:00
2015-04-06 22:41:13 +00:00
2015-12-28 02:43:12 +00:00
2015-12-28 02:43:12 +00:00
2015-02-10 21:41:56 +00:00
2016-07-27 07:51:58 +00:00
2016-09-01 08:01:13 +00:00
2016-06-16 04:21:27 +00:00
2016-06-23 08:38:01 +00:00
2016-01-11 23:34:29 +00:00
2016-06-27 21:44:27 +00:00
2016-07-27 07:51:58 +00:00
2015-12-28 02:43:12 +00:00
2016-07-27 13:53:15 +00:00
2016-01-28 21:30:49 +00:00
2015-05-13 00:28:36 +00:00
2016-07-27 06:31:40 +00:00
2016-01-11 23:34:29 +00:00
2015-12-28 02:43:12 +00:00
2016-07-27 07:51:58 +00:00
2015-01-27 06:19:30 +00:00
2015-02-15 20:53:50 +00:00