scale.c: Use int instead of kernel_t for values in named_int_t
authorSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 10 Oct 2013 02:05:59 +0000 (22:05 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 12 Oct 2013 19:04:27 +0000 (15:04 -0400)
commit09a62d4dbc9a1a86ef7671c2abc9b7f753b86f64
tree8fceff6b99b3256b4baa769ba9a83b8c05129b3c
parent93672438012b63f585dfcd76992099740e0500b8
scale.c: Use int instead of kernel_t for values in named_int_t

The 'value' field in the 'named_int_t' struct is used for both
pixman_repeat_t and pixman_kernel_t values, so the type should be int,
not pixman_kernel_t.

Fixes some warnings like this

scale.c:124:33: warning: implicit conversion from enumeration
      type 'pixman_repeat_t' to different enumeration type
      'pixman_kernel_t' [-Wconversion]
    { "None",                   PIXMAN_REPEAT_NONE },
    ~                           ^~~~~~~~~~~~~~~~~~

when compiled with clang.
demos/scale.c