From 93f8a2e834eed69aff7ef3be8c2baba14bab0658 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 18 Sep 2009 23:07:26 +0200 Subject: convert // comments to /**/; remove empty #if/#endif pairs. no code changes Signed-off-by: Denys Vlasenko --- libc/misc/utmp/utent.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'libc/misc/utmp') diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c index 7d8a2d3c1..beb00591c 100644 --- a/libc/misc/utmp/utent.c +++ b/libc/misc/utmp/utent.c @@ -47,15 +47,16 @@ static void __setutent(void) if (O_CLOEXEC == 0) { /* Make sure the file will be closed on exec() */ fcntl(static_fd, F_SETFD, FD_CLOEXEC); - // thus far, {G,S}ETFD only has this single flag, - // and setting it never fails. - //int ret = fcntl(static_fd, F_GETFD, 0); - //if (ret >= 0) { - // ret = fcntl(static_fd, F_SETFD, ret | FD_CLOEXEC); - //} - //if (ret < 0) { - // static_fd = -1; - //} + /* thus far, {G,S}ETFD only has this single flag, + * and setting it never fails. + *int ret = fcntl(static_fd, F_GETFD, 0); + *if (ret >= 0) { + * ret = fcntl(static_fd, F_SETFD, ret | FD_CLOEXEC); + *} + *if (ret < 0) { + * static_fd = -1; + *} + */ } return; } -- cgit v1.2.3