]> git.sur5r.net Git - i3/i3lock/commitdiff
clang-format-3.5
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 3 Jun 2016 15:46:29 +0000 (17:46 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 3 Jun 2016 15:46:29 +0000 (17:46 +0200)
Not sure why travis didn’t warn about this on the PR. The only reference
to the PR I can find is https://travis-ci.org/i3/i3lock/builds/130470377

i3lock.c

index 524463f0f813445c974ca576f6175edfe9ea6a16..0383ebea575eb34027161d65cbed2d341dda533b 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -636,10 +636,10 @@ static void maybe_close_sleep_lock_fd(void) {
     const char *sleep_lock_fd = getenv("XSS_SLEEP_LOCK_FD");
     char *endptr;
     if (sleep_lock_fd && *sleep_lock_fd != 0) {
     const char *sleep_lock_fd = getenv("XSS_SLEEP_LOCK_FD");
     char *endptr;
     if (sleep_lock_fd && *sleep_lock_fd != 0) {
-         long int fd = strtol(sleep_lock_fd, &endptr, 10);
-         if (*endptr == 0) {
-             close(fd);
-         }
+        long int fd = strtol(sleep_lock_fd, &endptr, 10);
+        if (*endptr == 0) {
+            close(fd);
+        }
     }
 }
 
     }
 }