evas/engine/drm: Avoid shadow of a function parameter

Having the same name for a parameter as well as a local var name could
cause quite some problems. Better avoid it.
This commit is contained in:
Stefan Schmidt 2014-03-19 16:16:55 +01:00
parent 80497d75bc
commit 897b70437f
1 changed files with 5 additions and 5 deletions

View File

@ -248,7 +248,7 @@ ecore_drm_device_find(const char *name, const char *seat)
/* try to allocate space for return device structure */
if ((dev = calloc(1, sizeof(Ecore_Drm_Device))))
{
const char *id, *seat;
const char *id, *seat_id;
/* set device name */
dev->drm.name =
@ -262,11 +262,11 @@ ecore_drm_device_find(const char *name, const char *seat)
if ((id = udev_device_get_sysnum(tmpdevice)))
dev->id = atoi(id);
/* set dev seat */
seat = udev_device_get_property_value(tmpdevice, "ID_SEAT");
if (!seat) seat = "seat0";
/* set dev seat_id */
seat_id = udev_device_get_property_value(tmpdevice, "ID_SEAT");
if (!seat_id) seat_id = "seat0";
dev->seat = eina_stringshare_add(seat);
dev->seat = eina_stringshare_add(seat_id);
/* dev->format = GBM_FORMAT_XRGB8888; */
dev->format = 0;