Fix invalid assignment of sizeof 55/283355/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 18 Oct 2022 08:06:10 +0000 (17:06 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 18 Oct 2022 08:07:10 +0000 (17:07 +0900)
Change-Id: I7672cf880560ccde35577a8f956b13a2b7b42bb0

client/tdm_client.c
src/tdm_server.c

index ddfc222..62eaf6e 100644 (file)
@@ -2361,7 +2361,8 @@ _tdm_client_voutput_send_available_modes(tdm_private_client_voutput *private_vou
 {
        tdm_client_output_mode *modes, *mode;
        struct wl_array array;
-       int i, size;
+       int i;
+       size_t size;
 
        modes = private_voutput->available_modes.modes;
        size = sizeof(tdm_client_output_mode);
index 903a659..a5274e1 100644 (file)
@@ -809,7 +809,8 @@ _tdm_voutput_cb_set_available_modes(struct wl_client *client,
 {
        tdm_server_voutput_info *voutput_info;
        tdm_output_mode *mode;
-       int size, count = 0, i = 0;
+       int count = 0, i = 0;
+       size_t size;
 
        voutput_info = wl_resource_get_user_data(resource);