Module Name: src Committed By: riastradh Date: Tue Aug 8 10:36:17 UTC 2023
Modified Files: src/tests/lib/libc: t_cdb.c Log Message: t_cdb: 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.3 -r1.4 src/tests/lib/libc/t_cdb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/t_cdb.c diff -u src/tests/lib/libc/t_cdb.c:1.3 src/tests/lib/libc/t_cdb.c:1.4 --- src/tests/lib/libc/t_cdb.c:1.3 Tue Aug 1 07:57:17 2023 +++ src/tests/lib/libc/t_cdb.c Tue Aug 8 10:36:17 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: t_cdb.c,v 1.3 2023/08/01 07:57:17 mrg Exp $ */ +/* $NetBSD: t_cdb.c,v 1.4 2023/08/08 10:36:17 riastradh Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. * All rights reserved. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_cdb.c,v 1.3 2023/08/01 07:57:17 mrg Exp $"); +__RCSID("$NetBSD: t_cdb.c,v 1.4 2023/08/08 10:36:17 riastradh Exp $"); #include <atf-c.h> @@ -100,7 +100,7 @@ write_database(size_t len) ATF_REQUIRE(cdbw_put(db, &keys[i], sizeof(keys[i]), buf, sizeof(buf)) == 0); } - ATF_REQUIRE(cdbw_output(db, fd, "test database\0\0", arc4random) == 0); + ATF_REQUIRE(cdbw_output(db, fd, "test database", arc4random) == 0); cdbw_close(db); ATF_REQUIRE(close(fd) == 0); }