util: fix indentation for safe_atoi
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 24 Nov 2016 00:47:47 +0000 (10:47 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 28 Nov 2016 01:31:20 +0000 (11:31 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput-util.h

index b7bef80c6930018f7d8785393ae41aa8eed166f8..441a41b9b444008f11e171ac64d0101e545a7de2 100644 (file)
@@ -407,20 +407,20 @@ us2ms(uint64_t us)
 static inline bool
 safe_atoi(const char *str, int *val)
 {
-        char *endptr;
-        long v;
+       char *endptr;
+       long v;
 
-        v = strtol(str, &endptr, 10);
-        if (str == endptr)
-                return false;
-        if (*str != '\0' && *endptr != '\0')
-                return false;
+       v = strtol(str, &endptr, 10);
+       if (str == endptr)
+               return false;
+       if (*str != '\0' && *endptr != '\0')
+               return false;
 
-        if (v > INT_MAX || v < INT_MIN)
-                return false;
+       if (v > INT_MAX || v < INT_MIN)
+               return false;
 
-        *val = v;
-        return true;
+       *val = v;
+       return true;
 }
 
 #endif /* LIBINPUT_UTIL_H */