Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vndcompress __diagused, not __unused -- used in an a...
details: https://anonhg.NetBSD.org/src/rev/4c8b02f3d687
branches: trunk
changeset: 344619:4c8b02f3d687
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Apr 07 23:29:59 2016 +0000
description:
__diagused, not __unused -- used in an assert.
diffstat:
usr.bin/vndcompress/utils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c402ad5d7f88 -r 4c8b02f3d687 usr.bin/vndcompress/utils.c
--- a/usr.bin/vndcompress/utils.c Thu Apr 07 21:41:02 2016 +0000
+++ b/usr.bin/vndcompress/utils.c Thu Apr 07 23:29:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utils.c,v 1.4 2014/01/22 06:15:31 riastradh Exp $ */
+/* $NetBSD: utils.c,v 1.5 2016/04/07 23:29:59 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: utils.c,v 1.4 2014/01/22 06:15:31 riastradh Exp $");
+__RCSID("$NetBSD: utils.c,v 1.5 2016/04/07 23:29:59 riastradh Exp $");
#include <sys/types.h>
@@ -61,7 +61,7 @@
ssize_t
read_block(int fd, void *buffer, size_t n)
{
- char *p = buffer, *const end __unused = (p + n);
+ char *p = buffer, *const end __diagused = (p + n);
size_t total_read = 0;
while (n > 0) {
@@ -93,7 +93,7 @@
ssize_t
pread_block(int fd, void *buffer, size_t n, off_t fdpos)
{
- char *p = buffer, *const end __unused = (p + n);
+ char *p = buffer, *const end __diagused = (p + n);
size_t total_read = 0;
assert(0 <= fdpos);
Home |
Main Index |
Thread Index |
Old Index