summaryrefslogtreecommitdiff
path: root/sys/arch/atari/dev
diff options
context:
space:
mode:
authorapb <apb@NetBSD.org>2013-01-26 18:13:55 +0000
committerapb <apb@NetBSD.org>2013-01-26 18:13:55 +0000
commitdb4e6d734c3f623f3f0bee918999f0d83ced2f36 (patch)
tree1c85b890fa155e57c81d392a27d3a62821c6d39f /sys/arch/atari/dev
parenta0b275cb3bbecd1aa848f1142fd9e04c0a4f166b (diff)
use sizeof(buffer) - 1, not sizeof(buffer - 1)
Diffstat (limited to 'sys/arch/atari/dev')
-rw-r--r--sys/arch/atari/dev/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/atari/dev/clock.c b/sys/arch/atari/dev/clock.c
index 1649baf03dd..0ce0ec640e5 100644
--- a/sys/arch/atari/dev/clock.c
+++ b/sys/arch/atari/dev/clock.c
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.54 2012/06/30 12:42:37 tsutsui Exp $ */
+/* $NetBSD: clock.c,v 1.55 2013/01/26 18:13:55 apb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.54 2012/06/30 12:42:37 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.55 2013/01/26 18:13:55 apb Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -552,7 +552,7 @@ rtcwrite(dev_t dev, struct uio *uio, int flags)
*/
length = uio->uio_resid;
if (uio->uio_offset || (length != sizeof(buffer)
- && length != sizeof(buffer - 1)))
+ && length != sizeof(buffer) - 1))
return EINVAL;
if ((error = uiomove((void *)buffer, sizeof(buffer), uio)))