aboutsummaryrefslogtreecommitdiff
path: root/csu/gmon-start.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-23 08:04:16 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-23 08:04:16 +0000
commitde71a46a6e1d191e142b198c1980831b2dfb62f0 (patch)
tree5e296901eeb7a42f3ff65070f22f2a73d2098172 /csu/gmon-start.c
parent1eaa106e4128c7b551eeb4a7354bf28d4e504bb0 (diff)
downloadglibc-de71a46a6e1d191e142b198c1980831b2dfb62f0.tar
glibc-de71a46a6e1d191e142b198c1980831b2dfb62f0.tar.gz
glibc-de71a46a6e1d191e142b198c1980831b2dfb62f0.tar.bz2
glibc-de71a46a6e1d191e142b198c1980831b2dfb62f0.zip
Update.
2000-11-18 Martin Buchholz <martin@xemacs.org> * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if (called++) return;' 2000-11-21 Alan Modra <alan@linuxcare.com.au> * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp. * csu/abi-note.S: Correct comment for operating system number. * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks.
Diffstat (limited to 'csu/gmon-start.c')
-rw-r--r--csu/gmon-start.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/csu/gmon-start.c b/csu/gmon-start.c
index b5ad6f6ae8..e5b45333cd 100644
--- a/csu/gmon-start.c
+++ b/csu/gmon-start.c
@@ -49,8 +49,10 @@ __gmon_start__ (void)
into every shared library, each of their init functions will call us. */
static int called;
- if (called++)
+ if (called)
return;
+
+ called = 1;
#endif
/* Start keeping profiling records. */