dev_mkdb(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.
This commit is contained in:
parent
7393532b27
commit
c3a13cfdbd
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dev_mkdb.c,v 1.30 2023/08/01 07:57:17 mrg Exp $ */
|
/* $NetBSD: dev_mkdb.c,v 1.31 2023/08/08 10:35:37 riastradh Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990, 1993
|
* Copyright (c) 1990, 1993
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__RCSID("$NetBSD: dev_mkdb.c,v 1.30 2023/08/01 07:57:17 mrg Exp $");
|
__RCSID("$NetBSD: dev_mkdb.c,v 1.31 2023/08/08 10:35:37 riastradh Exp $");
|
||||||
|
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -76,7 +76,7 @@ cdb_close(void)
|
||||||
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
|
fd = open(db_name_tmp, O_CREAT|O_EXCL|O_WRONLY, FILE_PERMISSION);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
err(1, "opening %s failed", db_name_tmp);
|
err(1, "opening %s failed", db_name_tmp);
|
||||||
if (cdbw_output(db, fd, "NetBSD6 devdb\0\0", NULL))
|
if (cdbw_output(db, fd, "NetBSD6 devdb", NULL))
|
||||||
err(1, "failed to write temporary database %s", db_name_tmp);
|
err(1, "failed to write temporary database %s", db_name_tmp);
|
||||||
cdbw_close(db);
|
cdbw_close(db);
|
||||||
db = NULL;
|
db = NULL;
|
||||||
|
|
Loading…
Reference in New Issue