Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/wake remove stupid casts. if lint complains about ...
details: https://anonhg.NetBSD.org/src/rev/8e30021e55fa
branches: trunk
changeset: 750686:8e30021e55fa
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Sun Jan 10 19:40:11 2010 +0000
description:
remove stupid casts. if lint complains about return values that are ignored,
lint should fe fixed, and not code being cluttered.
diffstat:
usr.sbin/wake/wake.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 09f10f2ba60b -r 8e30021e55fa usr.sbin/wake/wake.c
--- a/usr.sbin/wake/wake.c Sun Jan 10 19:04:35 2010 +0000
+++ b/usr.sbin/wake/wake.c Sun Jan 10 19:40:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wake.c,v 1.11 2010/01/04 11:34:39 mbalmer Exp $ */
+/* $NetBSD: wake.c,v 1.12 2010/01/10 19:40:11 mbalmer Exp $ */
/*
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Marc Balmer <marc%msys.ch@localhost>
@@ -74,7 +74,7 @@
static void
usage(void)
{
- (void)fprintf(stderr, "usage: %s [interface] lladdr [lladdr ...]\n",
+ fprintf(stderr, "usage: %s [interface] lladdr [lladdr ...]\n",
getprogname());
exit(EXIT_FAILURE);
}
@@ -166,12 +166,12 @@
int i;
ssize_t bw, len;
- (void)memset(pkt.hdr.ether_dhost, 0xff, sizeof(pkt.hdr.ether_dhost));
+ memset(pkt.hdr.ether_dhost, 0xff, sizeof(pkt.hdr.ether_dhost));
pkt.hdr.ether_type = htons(0);
- (void)memset(pkt.data, 0xff, SYNC_LEN);
+ memset(pkt.data, 0xff, SYNC_LEN);
for (p = pkt.data + SYNC_LEN, i = 0; i < DESTADDR_COUNT;
p += ETHER_ADDR_LEN, i++)
- (void)memcpy(p, addr->ether_addr_octet, ETHER_ADDR_LEN);
+ memcpy(p, addr->ether_addr_octet, ETHER_ADDR_LEN);
p = (u_char *)(void *)&pkt;
len = sizeof(pkt);
bw = 0;
Home |
Main Index |
Thread Index |
Old Index