From 4a542137c484ae008f3e185f819b8800f9bcc21f Mon Sep 17 00:00:00 2001 From: Sridhar Samudrala Date: Wed, 3 Sep 2003 22:36:38 -0700 Subject: [PATCH] [SCTP] Move a local variable declaration ahead of the function code. Apparently the new gcc 3.2.2 allows local variable declarations within the code of a function if it is not used earlier. But older gcc's do not allow this. --- net/sctp/bind_addr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index fa51ddefa3e04..c2a288bcca393 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c @@ -1,7 +1,7 @@ /* SCTP kernel reference Implementation + * (C) Copyright IBM Corp. 2001, 2003 * Copyright (c) Cisco 1999,2000 * Copyright (c) Motorola 1999,2000,2001 - * Copyright (c) International Business Machines Corp., 2001,2002 * Copyright (c) La Monte H.P. Yarroll 2001 * * This file is part of the SCTP kernel reference implementation. @@ -223,9 +223,10 @@ union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, int len; struct sctp_sockaddr_entry *addr; struct list_head *pos; + struct sctp_af *af; + addrparms_len = 0; len = 0; - struct sctp_af *af; /* Allocate enough memory at once. */ list_for_each(pos, &bp->address_list) { -- 2.53.0