Index: fusl/src/unistd/ttyname.c |
diff --git a/fusl/src/unistd/ttyname.c b/fusl/src/unistd/ttyname.c |
index 0f3e11411b068ec820b5e4212ba57d9dd6b59e54..096e72e3d37d5e99048ae46035ed9b6ebc844d2d 100644 |
--- a/fusl/src/unistd/ttyname.c |
+++ b/fusl/src/unistd/ttyname.c |
@@ -2,13 +2,12 @@ |
#include <errno.h> |
#include <limits.h> |
-char *ttyname(int fd) |
-{ |
- static char buf[TTY_NAME_MAX]; |
- int result; |
- if ((result = ttyname_r(fd, buf, sizeof buf))) { |
- errno = result; |
- return NULL; |
- } |
- return buf; |
+char* ttyname(int fd) { |
+ static char buf[TTY_NAME_MAX]; |
+ int result; |
+ if ((result = ttyname_r(fd, buf, sizeof buf))) { |
+ errno = result; |
+ return NULL; |
+ } |
+ return buf; |
} |