Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/rndctl Fix arguments for write.
details: https://anonhg.NetBSD.org/src/rev/addf48ef3c08
branches: trunk
changeset: 325984:addf48ef3c08
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jan 15 10:13:25 2014 +0000
description:
Fix arguments for write.
diffstat:
sbin/rndctl/rndctl.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r f11d12c49b31 -r addf48ef3c08 sbin/rndctl/rndctl.c
--- a/sbin/rndctl/rndctl.c Wed Jan 15 09:24:31 2014 +0000
+++ b/sbin/rndctl/rndctl.c Wed Jan 15 10:13:25 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndctl.c,v 1.25 2012/08/14 14:41:07 jruoho Exp $ */
+/* $NetBSD: rndctl.c,v 1.26 2014/01/15 10:13:25 joerg Exp $ */
/*-
* Copyright (c) 1997 Michael Graff.
@@ -33,7 +33,7 @@
#include <sha1.h>
#ifndef lint
-__RCSID("$NetBSD: rndctl.c,v 1.25 2012/08/14 14:41:07 jruoho Exp $");
+__RCSID("$NetBSD: rndctl.c,v 1.26 2014/01/15 10:13:25 joerg Exp $");
#endif
@@ -203,9 +203,8 @@
}
memset(&rszero, 0, sizeof(rszero));
- if (write(fd, &rszero, sizeof(rszero) != sizeof(rszero))) {
+ if (write(fd, &rszero, sizeof(rszero)) != sizeof(rszero))
err(1, "overwrite");
- }
fsync_range(fd, FDATASYNC|FDISKSYNC, (off_t)0, (off_t)0);
close(fd);
Home |
Main Index |
Thread Index |
Old Index