Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/fetch/dist/libfetch add missing paren
details: https://anonhg.NetBSD.org/src/rev/1d92eea8ab58
branches: trunk
changeset: 766527:1d92eea8ab58
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 25 20:13:03 2011 +0000
description:
add missing paren
diffstat:
external/bsd/fetch/dist/libfetch/ftp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 23bc0b04c03b -r 1d92eea8ab58 external/bsd/fetch/dist/libfetch/ftp.c
--- a/external/bsd/fetch/dist/libfetch/ftp.c Sat Jun 25 17:13:34 2011 +0000
+++ b/external/bsd/fetch/dist/libfetch/ftp.c Sat Jun 25 20:13:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.2 2011/06/25 17:13:34 christos Exp $ */
+/* $NetBSD: ftp.c,v 1.3 2011/06/25 20:13:03 christos Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2008, 2009, 2010 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -144,8 +144,8 @@
if (sin6->sin6_family != AF_INET6 ||
!IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr))
return;
- sin4 = (struct sockaddr_in *)sin6;
- addr = *(uint32_t *)&sin6->sin6_addr.s6_addr[12];
+ sin4 = (struct sockaddr_in *)(void *)sin6;
+ addr = *(uint32_t *)(void *)&sin6->sin6_addr.s6_addr[12];
port = sin6->sin6_port;
memset(sin4, 0, sizeof(struct sockaddr_in));
sin4->sin_addr.s_addr = addr;
@@ -1109,7 +1109,7 @@
HP = getenv("HTTP_PROXY");
hp = getenv("http_proxy");
- if (((p = FP) || (p = fp) || (p = HP) || (p = hp))) &&
+ if ((((p = FP) || (p = fp) || (p = HP) || (p = hp))) &&
*p && (purl = fetchParseURL(p)) != NULL) {
if (!*purl->scheme) {
if (fp || FP)
Home |
Main Index |
Thread Index |
Old Index