Fixed whitespace in SDL_evdev.c

This commit is contained in:
Sam Lantinga 2015-06-24 17:55:38 -07:00
parent 9f50d63dd5
commit 82eec4b630

View File

@ -732,7 +732,7 @@ SDL_EVDEV_device_added(const char *devpath)
/* Check to make sure it's not already in list. */ /* Check to make sure it's not already in list. */
for (item = _this->first; item != NULL; item = item->next) { for (item = _this->first; item != NULL; item = item->next) {
if (strcmp(devpath, item->path) == 0) { if (SDL_strcmp(devpath, item->path) == 0) {
return -1; /* already have this one */ return -1; /* already have this one */
} }
} }
@ -779,7 +779,7 @@ SDL_EVDEV_device_removed(const char *devpath)
for (item = _this->first; item != NULL; item = item->next) { for (item = _this->first; item != NULL; item = item->next) {
/* found it, remove it. */ /* found it, remove it. */
if ( strcmp(devpath, item->path) ==0 ) { if (SDL_strcmp(devpath, item->path) == 0) {
if (prev != NULL) { if (prev != NULL) {
prev->next = item->next; prev->next = item->next;
} else { } else {