Module Name:    src
Committed By:   riastradh
Date:           Tue Aug  8 10:36:04 UTC 2023

Modified Files:
        src/lib/libnpf: npf.c

Log Message:
libnpf(3): 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.51 -r1.52 src/lib/libnpf/npf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libnpf/npf.c
diff -u src/lib/libnpf/npf.c:1.51 src/lib/libnpf/npf.c:1.52
--- src/lib/libnpf/npf.c:1.51	Tue Aug  1 07:57:17 2023
+++ src/lib/libnpf/npf.c	Tue Aug  8 10:36:04 2023
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.51 2023/08/01 07:57:17 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.52 2023/08/08 10:36:04 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -1203,7 +1203,7 @@ _npf_table_build_const(nl_table_t *tl)
 	}
 	unlink(sfn);
 
-	if (cdbw_output(cdbw, fd, "npf-table-cdb\0\0", NULL) == -1) {
+	if (cdbw_output(cdbw, fd, "npf-table-cdb", NULL) == -1) {
 		error = errno;
 		goto out;
 	}

Reply via email to