]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ether_aton): Declare result variable static.
authorUlrich Drepper <drepper@redhat.com>
Tue, 28 Apr 1998 14:20:16 +0000 (14:20 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 28 Apr 1998 14:20:16 +0000 (14:20 +0000)
inet/ether_aton.c

index eb27b244d9c5a8d06599df9772ffa9c706c82839..0cb8bfc4e49ce69584e1457ba9c2f62f7e0241db 100644 (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);
 }