(ether_aton): Declare result variable static.

This commit is contained in:
Ulrich Drepper 1998-04-28 14:20:16 +00:00
parent 7762bc98a2
commit 3ae5776422

View File

@ -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 <drepper@cygnus.com>, 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);
}