Module Name: src Committed By: riastradh Date: Tue Aug 8 10:35:48 UTC 2023
Modified Files: src/usr.sbin/npf/npftest: npftest.c Log Message: npftest(8): No need for weird padding any more. cdbw_output never needed it at runtime, and the declaration no longer makes gcc angry about not having it. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/npf/npftest/npftest.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/npf/npftest/npftest.c diff -u src/usr.sbin/npf/npftest/npftest.c:1.26 src/usr.sbin/npf/npftest/npftest.c:1.27 --- src/usr.sbin/npf/npftest/npftest.c:1.26 Tue Aug 1 07:57:17 2023 +++ src/usr.sbin/npf/npftest/npftest.c Tue Aug 8 10:35:48 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: npftest.c,v 1.26 2023/08/01 07:57:17 mrg Exp $ */ +/* $NetBSD: npftest.c,v 1.27 2023/08/08 10:35:48 riastradh Exp $ */ /* * NPF testing framework. @@ -147,7 +147,7 @@ generate_test_cdb(size_t *size) if (cdbw_put(cdbw, &addr, alen, &addr, alen) == -1) err(EXIT_FAILURE, "cdbw_put"); - if (cdbw_output(cdbw, fd, "npf-table-cdb\0\0", NULL) == -1) { + if (cdbw_output(cdbw, fd, "npf-table-cdb", NULL) == -1) { err(EXIT_FAILURE, "cdbw_output"); } cdbw_close(cdbw);