diff options
| author | dholland <dholland@NetBSD.org> | 2009-07-04 01:01:18 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2009-07-04 01:01:18 +0000 |
| commit | b4927eeb3c0ce78e92584e8f5c602101445e1cc4 (patch) | |
| tree | 3c95d1f0ffe82f78c39a383da2c96235c44c5e9c /hunt/huntd/get_names.c | |
| parent | d00a8d1e94456d45abbb7c94cd846661735277ab (diff) | |
| download | bsdgames-darwin-b4927eeb3c0ce78e92584e8f5c602101445e1cc4.tar.gz bsdgames-darwin-b4927eeb3c0ce78e92584e8f5c602101445e1cc4.zip | |
Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
Diffstat (limited to 'hunt/huntd/get_names.c')
| -rw-r--r-- | hunt/huntd/get_names.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/huntd/get_names.c b/hunt/huntd/get_names.c index bfb32767..7acda59e 100644 --- a/hunt/huntd/get_names.c +++ b/hunt/huntd/get_names.c @@ -1,4 +1,4 @@ -/* $NetBSD: get_names.c,v 1.7 2003/06/11 12:00:22 wiz Exp $ */ +/* $NetBSD: get_names.c,v 1.8 2009/07/04 01:01:18 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: get_names.c,v 1.7 2003/06/11 12:00:22 wiz Exp $"); +__RCSID("$NetBSD: get_names.c,v 1.8 2009/07/04 01:01:18 dholland Exp $"); #endif /* not lint */ #include "bsd.h" @@ -146,7 +146,7 @@ get_remote_name(his_address) msg.r_name[NAME_SIZE - 1] = '\0'; /* if he is on the same machine, then simply copy */ - if (memcmp((char *) &his_machine_name, (char *) &my_machine_name, + if (memcmp(&his_machine_name, &my_machine_name, sizeof(his_machine_name)) == 0) memcpy(&his_machine_addr, &my_machine_addr, sizeof(his_machine_name)); |
