The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d5a5975f8430b15d3b40e4c54214701106b23b83

commit d5a5975f8430b15d3b40e4c54214701106b23b83
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2025-09-23 09:51:33 +0000
Commit:     Gleb Smirnoff <[email protected]>
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 */
 }

Reply via email to