diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-13 18:13:22 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-02-13 18:14:20 +0100 |
commit | 090be8653471e1abe3f1cdd32eaad0fbd65f85cd (patch) | |
tree | 760849764326e78d458ff7019ac8b3f2d88245d8 /src/udev/accelerometer | |
parent | b05105f0a80bcf2f2d18e9e33f740d7d04fca633 (diff) |
use streq instead of strcmp
Diffstat (limited to 'src/udev/accelerometer')
-rw-r--r-- | src/udev/accelerometer/accelerometer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/accelerometer/accelerometer.c b/src/udev/accelerometer/accelerometer.c index 2fea3889c7..f50db71a76 100644 --- a/src/udev/accelerometer/accelerometer.c +++ b/src/udev/accelerometer/accelerometer.c @@ -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; |