mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Use #warning instead of #warn: one is C and one isn't.
This commit is contained in:
parent
51c2097586
commit
9871fcbcd9
@ -526,7 +526,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.
|
* pass them, and some very old ones do not detect overflow so well.
|
||||||
* Regrettably, they call their maximum line length MAXLINE. */
|
* Regrettably, they call their maximum line length MAXLINE. */
|
||||||
#if MAXLINE < 64
|
#if MAXLINE < 64
|
||||||
#warn "MAXLINE is a very low number; it might not be from syslog.h after all"
|
#warning "MAXLINE is a very low number; it might not be from syslog.h."
|
||||||
#endif
|
#endif
|
||||||
char *m = msg_after_prefix;
|
char *m = msg_after_prefix;
|
||||||
if (msg_len >= MAXLINE)
|
if (msg_len >= MAXLINE)
|
||||||
|
@ -75,8 +75,8 @@
|
|||||||
#endif /* defined(HAVE_MINHERIT) || ... */
|
#endif /* defined(HAVE_MINHERIT) || ... */
|
||||||
|
|
||||||
#if defined(HAVE_MINHERIT) && !defined(FLAG_ZERO) && !defined(FLAG_NOINHERIT)
|
#if defined(HAVE_MINHERIT) && !defined(FLAG_ZERO) && !defined(FLAG_NOINHERIT)
|
||||||
#warn "minherit() is defined, but we couldn't find the right flag for it."
|
#warning "minherit() is defined, but we couldn't find the right flag for it."
|
||||||
#warn "This is probably a bug in Tor's support for this platform."
|
#warning "This is probably a bug in Tor's support for this platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user