chiark / gitweb /
use streq instead of strcmp
[elogind.git] / src / udev / accelerometer / accelerometer.c
index 2fea3889c777712ac58ebf244b5738da867a6edc..f50db71a761850c7ed06fa10b98173ff158a74e5 100644 (file)
@@ -122,7 +122,7 @@ string_to_orientation (const char *orientation)
         if (orientation == NULL)
                 return ORIENTATION_UNDEFINED;
         for (i = 0; orientations[i] != NULL; i++) {
-                if (strcmp (orientation, orientations[i]) == 0)
+                if (streq (orientation, orientations[i]))
                         return i;
         }
         return ORIENTATION_UNDEFINED;