From: Ulrich Drepper Date: Tue, 28 Apr 1998 14:20:16 +0000 (+0000) Subject: (ether_aton): Declare result variable static. X-Git-Tag: cvs/sparc-980522-merge~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ae5776422bcd5a17914e9a63c84736a2789f9a2;p=thirdparty%2Fglibc.git (ether_aton): Declare result variable static. --- diff --git a/inet/ether_aton.c b/inet/ether_aton.c index eb27b244d9c..0cb8bfc4e49 100644 --- a/inet/ether_aton.c +++ b/inet/ether_aton.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */ struct ether_addr * ether_aton (const char *asc) { - struct ether_addr result; + static struct ether_addr result; return ether_aton_r (asc, &result); }