]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a couple more long warning lines
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 21:19:49 +0000 (16:19 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 21:25:56 +0000 (16:25 -0500)
These are not a problem with 2-space indentation, but cocci will
start getting confused when clang-format wraps them with 4-space
indentation.

src/lib/log/log.c
src/lib/malloc/map_anon.c

index 75f8f79da25f42ea578406d1d3be2c533039cc2e..9ebe7350b2aff116347607582fe840e00578192f 100644 (file)
@@ -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)
index 1926b61f07eaac1c9d4240cb29092219d167e0b7..628966012a2f9bdf0a53baa008cbfc9f432cf7bb 100644 (file)
@@ -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