From ce1c5cecc04140091ed5691d326e357b79764341 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 3 Jun 2016 17:46:29 +0200 Subject: [PATCH] clang-format-3.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i3lock.c b/i3lock.c index 524463f..0383ebe 100644 --- 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) { - 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); + } } } -- 2.39.2