Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpam/modules/pam_radius Don't cast the lvalue; cast th...



details:   https://anonhg.NetBSD.org/src/rev/2a314b5c43f1
branches:  trunk
changeset: 580484:2a314b5c43f1
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Apr 25 15:42:46 2005 +0000

description:
Don't cast the lvalue; cast the rhs instead.

diffstat:

 lib/libpam/modules/pam_radius/pam_radius.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fab37f80afe4 -r 2a314b5c43f1 lib/libpam/modules/pam_radius/pam_radius.c
--- a/lib/libpam/modules/pam_radius/pam_radius.c        Mon Apr 25 15:02:02 2005 +0000
+++ b/lib/libpam/modules/pam_radius/pam_radius.c        Mon Apr 25 15:42:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pam_radius.c,v 1.4 2005/04/19 03:15:35 christos Exp $  */
+/*     $NetBSD: pam_radius.c,v 1.5 2005/04/25 15:42:46 matt Exp $      */
 
 /*-
  * Copyright 1998 Juniper Networks, Inc.
@@ -40,7 +40,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/lib/libpam/modules/pam_radius/pam_radius.c,v 1.22 2004/06/25 12:32:45 kan Exp $");
 #else
-__RCSID("$NetBSD: pam_radius.c,v 1.4 2005/04/19 03:15:35 christos Exp $");
+__RCSID("$NetBSD: pam_radius.c,v 1.5 2005/04/25 15:42:46 matt Exp $");
 #endif
 
 #include <sys/param.h>
@@ -117,7 +117,7 @@
                hints.ai_family = PF_INET;
                if (getaddrinfo(nas_ipaddr, NULL, &hints, &res) == 0 &&
                    res != NULL) {
-                       (struct sockaddr *)haddr = res->ai_addr;
+                       haddr = (struct sockaddr_in *)res->ai_addr;
                        error = rad_put_addr(radh, RAD_NAS_IP_ADDRESS,
                            haddr->sin_addr);
                        freeaddrinfo(res);



Home | Main Index | Thread Index | Old Index