summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-05 21:28:31 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-09-09 14:05:52 -0700
commitc3daabe3e7a11013ddb698ac94aa95299dc3ea3b (patch)
tree4bf94130f9b939c7c491b72f6dae27c38a00e0f3
parent6cf3bd5c43aa5f261754345c2024226c1cd3dc6d (diff)
downloaduClibc-alpine-c3daabe3e7a11013ddb698ac94aa95299dc3ea3b.tar.bz2
uClibc-alpine-c3daabe3e7a11013ddb698ac94aa95299dc3ea3b.tar.xz
math.h: fix trivial typo (missing !): !defined __NO_LONG_DOUBLE_MATH
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--include/math.h2
-rw-r--r--libc/misc/syslog/syslog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/math.h b/include/math.h
index a7c69b084..ecd01877c 100644
--- a/include/math.h
+++ b/include/math.h
@@ -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
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index da60874b3..dbb1e0d01 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -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));
}