about summary refs log tree commit diff
path: root/sysdeps/posix/profil.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-12 09:33:31 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-12 09:33:31 +0000
commitde7e6366d6de7b1c8f8409af669b2c1e83d7307b (patch)
tree0eaf8c2403e4dc39229229d248350c2cfeec2bdb /sysdeps/posix/profil.c
parent43ca76627c5c56a8887968f700d1e98cac3d3270 (diff)
downloadglibc-de7e6366d6de7b1c8f8409af669b2c1e83d7307b.tar.gz
glibc-de7e6366d6de7b1c8f8409af669b2c1e83d7307b.tar.xz
glibc-de7e6366d6de7b1c8f8409af669b2c1e83d7307b.zip
(__profil): Don't define act and timer variables as static.
Diffstat (limited to 'sysdeps/posix/profil.c')
-rw-r--r--sysdeps/posix/profil.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/posix/profil.c b/sysdeps/posix/profil.c
index 734111efbb..30481465fb 100644
--- a/sysdeps/posix/profil.c
+++ b/sysdeps/posix/profil.c
@@ -1,5 +1,5 @@
 /* Low-level statistical profiling support function.  Mostly POSIX.1 version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -62,8 +62,10 @@ profil_count (void *pc)
 int
 __profil (u_short *sample_buffer, size_t size, size_t offset, u_int scale)
 {
-  static struct sigaction act, oact;
-  static struct itimerval timer, otimer;
+  static struct sigaction oact;
+  static struct itimerval otimer;
+  struct sigaction act;
+  struct itimerval timer;
 
   if (sample_buffer == NULL)
     {