]> ruderich.org/simon Gitweb - wall-notify/wall-notify.git/commitdiff
fix indentation
authorSimon Ruderich <simon@ruderich.org>
Sat, 17 May 2014 20:40:40 +0000 (22:40 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 17 May 2014 21:03:37 +0000 (23:03 +0200)
src/wall-notify.c

index ab1c868fdfa18245e03b38a716b02931c1e15643..3a1824463ca14385ccd6cdebf1aafd5b41bc7b89 100644 (file)
@@ -82,13 +82,13 @@ static int open_tty(int public) {
     /* Prevent write access for other users so they can't use wall to send
      * messages to this program. */
     if (!public) {
     /* Prevent write access for other users so they can't use wall to send
      * messages to this program. */
     if (!public) {
-    name = ptsname(ptm);
-    if (!name) {
-        return -1;
-    }
-    if (chmod(name, S_IRUSR | S_IWUSR) != 0) {
-        return -1;
-    }
+        name = ptsname(ptm);
+        if (!name) {
+            return -1;
+        }
+        if (chmod(name, S_IRUSR | S_IWUSR) != 0) {
+            return -1;
+        }
     }
 
     if (unlockpt(ptm) != 0) {
     }
 
     if (unlockpt(ptm) != 0) {