OSDN Git Service

math.h: fix trivial typo (missing !): !defined __NO_LONG_DOUBLE_MATH
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Sep 2009 19:28:31 +0000 (21:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Sep 2009 19:28:31 +0000 (21:28 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/math.h
libc/misc/syslog/syslog.c

index a7c69b0..ecd0187 100644 (file)
@@ -135,7 +135,7 @@ __BEGIN_DECLS
 
 
 # if (defined __STDC__ || defined __GNUC__) \
-     && (defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
+     && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
 #  ifdef __LDBL_COMPAT
 
 #   ifdef __USE_ISOC99
index da60874..dbb1e0d 100644 (file)
@@ -164,7 +164,7 @@ retry:
                        if ((LogFile = socket(AF_UNIX, logType, 0)) == -1) {
                                goto DONE;
                        }
-                       fcntl(LogFile, F_SETFD, 1); /* 1 == FD_CLOEXEC */
+                       fcntl(LogFile, F_SETFD, FD_CLOEXEC);
                        /* We don't want to block if e.g. syslogd is SIGSTOPed */
                        fcntl(LogFile, F_SETFL, O_NONBLOCK | fcntl(LogFile, F_GETFL));
                }