Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ipf/dist/lib missed a const commit
details: https://anonhg.NetBSD.org/src/rev/dabd942d082d
branches: trunk
changeset: 782229:dabd942d082d
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 22 01:21:57 2012 +0000
description:
missed a const commit
diffstat:
external/bsd/ipf/dist/lib/hostname.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 85a4a5b11e65 -r dabd942d082d external/bsd/ipf/dist/lib/hostname.c
--- a/external/bsd/ipf/dist/lib/hostname.c Sun Oct 21 23:09:53 2012 +0000
+++ b/external/bsd/ipf/dist/lib/hostname.c Mon Oct 22 01:21:57 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hostname.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $ */
+/* $NetBSD: hostname.c,v 1.3 2012/10/22 01:21:57 christos Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -10,9 +10,8 @@
#include "ipf.h"
-char *hostname(family, ip)
- int family;
- void *ip;
+char *
+hostname(int family, const void *ip)
{
static char hostbuf[MAXHOSTNAMELEN+1];
struct hostent *hp;
@@ -22,7 +21,7 @@
memset(&ipa, 0, sizeof(ipa)); /* XXX gcc */
if (family == AF_INET) {
- ipa.s_addr = *(u_32_t *)ip;
+ ipa.s_addr = *(const u_32_t *)ip;
if (ipa.s_addr == htonl(0xfedcba98))
return "test.host.dots";
}
Home |
Main Index |
Thread Index |
Old Index