[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/6/6 Hangbin Liu <liuhangbin@xxxxxxxxx>:
> @@ -58,15 +59,15 @@
>  #define SOL_ALG         279
>  #define SOL_NFC                280
>
> -#define NR_SOL_IP_OPTS 19
> -static int ip_opts[NR_SOL_IP_OPTS] = { IP_TOS, IP_TTL, IP_HDRINCL, IP_OPTIONS,
> +#define NR_SOL_IP_OPTS ARRAY_SIZE(ip_opts)
> +static int ip_opts[] = { IP_TOS, IP_TTL, IP_HDRINCL, IP_OPTIONS,

How about also adding 'const'... ?

Dave already picked the patch, so this could be done separately.

Tommi
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux