summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-06 16:19:49 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 16:25:56 -0500
commit7036ed34715678d64a9bfee99db69830f44d8912 (patch)
tree5424eb262361987ca4281312a5324b79511c5833 /src/lib
parent6076adde256c7480b569f928c28d14ee637fbd6e (diff)
downloadtor-7036ed34715678d64a9bfee99db69830f44d8912.tar.gz
tor-7036ed34715678d64a9bfee99db69830f44d8912.zip
Fix a couple more long warning lines
These are not a problem with 2-space indentation, but cocci will start getting confused when clang-format wraps them with 4-space indentation.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/log/log.c2
-rw-r--r--src/lib/malloc/map_anon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/log/log.c b/src/lib/log/log.c
index 75f8f79da2..9ebe7350b2 100644
--- a/src/lib/log/log.c
+++ b/src/lib/log/log.c
@@ -523,7 +523,7 @@ logfile_deliver(logfile_t *lf, const char *buf, size_t msg_len,
* pass them, and some very old ones do not detect overflow so well.
* Regrettably, they call their maximum line length MAXLINE. */
#if MAXLINE < 64
-#warning "MAXLINE is a very low number; it might not be from syslog.h."
+#warning "MAXLINE is very low; it might not be from syslog.h."
#endif
char *m = msg_after_prefix;
if (msg_len >= MAXLINE)
diff --git a/src/lib/malloc/map_anon.c b/src/lib/malloc/map_anon.c
index 1926b61f07..628966012a 100644
--- a/src/lib/malloc/map_anon.c
+++ b/src/lib/malloc/map_anon.c
@@ -78,7 +78,7 @@
#endif /* defined(HAVE_MINHERIT) || ... */
#if defined(HAVE_MINHERIT) && !defined(FLAG_ZERO) && !defined(FLAG_NOINHERIT)
-#warning "minherit() is defined, but we couldn't find the right flag for it."
+#warning "minherit() is defined, but FLAG_ZERO/NOINHERIT are not."
#warning "This is probably a bug in Tor's support for this platform."
#endif