stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=19c6617d78fdd6982ba34f7e95c89e6a698d16e3

commit 19c6617d78fdd6982ba34f7e95c89e6a698d16e3
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Fri Aug 7 14:54:34 2015 +0200

    ecore_drm_evdev: Avoid shadowing a local variable.
    
    input is already used within this function so rename it in the block.
---
 src/lib/ecore_drm/ecore_drm_evdev.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c 
b/src/lib/ecore_drm/ecore_drm_evdev.c
index deca6a2..fe38302 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -80,19 +80,19 @@ _device_output_set(Ecore_Drm_Evdev *edev)
    if (libinput_device_has_capability(edev->device, 
                                       LIBINPUT_DEVICE_CAP_POINTER))
      {
-        Ecore_Drm_Input *input;
+        Ecore_Drm_Input *pointer_input;
         Ecore_Event_Mouse_Move *ev;
 
         edev->mouse.dx = edev->output->current_mode->width / 2;
         edev->mouse.dy = edev->output->current_mode->height / 2;
 
         /* send a fake motion event to let other know the initial pos of mouse 
*/
-        if (!(input = edev->seat->input)) return;
+        if (!(pointer_input = edev->seat->input)) return;
         if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return;
 
-        ev->window = (Ecore_Window)input->dev->window;
-        ev->event_window = (Ecore_Window)input->dev->window;
-        ev->root_window = (Ecore_Window)input->dev->window;
+        ev->window = (Ecore_Window)pointer_input->dev->window;
+        ev->event_window = (Ecore_Window)pointer_input->dev->window;
+        ev->root_window = (Ecore_Window)pointer_input->dev->window;
 
         _device_modifiers_update(edev);
         ev->modifiers = edev->xkb.modifiers;

-- 


Reply via email to