git: d5a5975f8430 - main - newsyslog: remove leftovers of 20-year old debugging code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Sep 2025 19:33:44 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=d5a5975f8430b15d3b40e4c54214701106b23b83
commit d5a5975f8430b15d3b40e4c54214701106b23b83
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-09-23 09:51:33 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-09-23 19:32:26 +0000
newsyslog: remove leftovers of 20-year old debugging code
---
usr.sbin/newsyslog/newsyslog.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 7ebdd7cbc0dd..0c8c2c85b893 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -837,13 +837,6 @@ parse_doption(const char *doption)
return (1); /* successfully parsed */
}
- /* XXX - This check could probably be dropped. */
- if ((strcmp(doption, "neworder") == 0) || (strcmp(doption, "oldorder")
- == 0)) {
- warnx("NOTE: newsyslog always uses 'neworder'.");
- return (1); /* successfully parsed */
- }
-
warnx("Unknown -D (debug) option: '%s'", doption);
return (0); /* failure */
}