From 9d1efe331c8437e22b4a8110f435d92c7d38774b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Nov 1998 18:44:53 +0000 Subject: Update. * intl/locale.alias: Change `japanese' alais to match X11R6's. Add `japanese.euc' alias. * manual/Makefile (%.info): Set LANGUAGE and LC_ALL explicitly to C before running makeinfo. * math/Makefile (libm-routines): $(strip) entire value. * nss/nss_db/db-XXX.c (internal_setent): Rewrite to avoid warning. 1998-10-24 H.J. Lu * libio/libio.h (_IO_cookie_io_functions_t): Protect with __USE_GNU. (_IO_cookie_file): Likewise. 1998-11-16 Philip Blundell * inet/netinet/icmp6.h: Correct naming of constants. 1998-11-16 Ulrich Drepper (fwrite_unlocked): Likewise. format, just stop. --- nss/nss_db/db-XXX.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'nss') diff --git a/nss/nss_db/db-XXX.c b/nss/nss_db/db-XXX.c index 8ba73efcb6..7356b34462 100644 --- a/nss/nss_db/db-XXX.c +++ b/nss/nss_db/db-XXX.c @@ -73,9 +73,9 @@ internal_setent (int stayopen) } else { - /* We have to make sure the file is `closed on exec'. */ + /* We have to make sure the file is `closed on exec'. */ int fd; - int result, flags; + int result; err = db->fd (db, &fd); if (err != 0) @@ -84,11 +84,14 @@ internal_setent (int stayopen) result = -1; } else - result = flags = fcntl (fd, F_GETFD, 0); - if (result >= 0) { - flags |= FD_CLOEXEC; - result = fcntl (fd, F_SETFD, flags); + int flags = result = fcntl (fd, F_GETFD, 0); + + if (result >= 0) + { + flags |= FD_CLOEXEC; + result = fcntl (fd, F_SETFD, flags); + } } if (result < 0) { -- cgit 1.4.1