callgraph

runtime callgraph generator
git clone git://git.2f30.org/callgraph
Log | Files | Refs | README | LICENSE

commit 6eedc7c9a0c90735f0edfb1092b731bff5ccfe3d
parent 992805a678fb84b64f201a1d4abf8b99b47d1ac8
Author: sin <sin@2f30.org>
Date:   Thu, 14 Nov 2013 20:01:12 +0000

Random stylistic issues

No need to check for (r < 0).

Diffstat:
Mlibcallgraph.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libcallgraph.c b/libcallgraph.c @@ -1,5 +1,3 @@ -/* runtime callgraph generator by stateless */ - #include <stdio.h> #include <sys/stat.h> #include <fcntl.h> @@ -50,14 +48,12 @@ writelog(int fildes, const void *buf, size_t nbyte) w = 0; r = nbyte; - if (r < 0) return 0; do { -again: tmp = write(fildes, (const char *)buf + w, r); if (tmp <= 0) { if (tmp) if (errno == EINTR) - goto again; + continue; return tmp; } w += tmp; @@ -195,4 +191,3 @@ __cyg_profile_func_exit ( { pop_fnode(); } -