diff options
author | fche <fche> | 2005-07-14 21:08:14 +0000 |
---|---|---|
committer | fche <fche> | 2005-07-14 21:08:14 +0000 |
commit | cf99344f0785c358d6534a4ec5558407107d633b (patch) | |
tree | f2b99e5227ca23b6de6dc91d5697bd437b133049 | |
parent | 40c0fe2b6aa89299491ebbfb2a23833986e8ba1b (diff) | |
download | systemtap-steved-cf99344f0785c358d6534a4ec5558407107d633b.tar.gz systemtap-steved-cf99344f0785c358d6534a4ec5558407107d633b.tar.xz systemtap-steved-cf99344f0785c358d6534a4ec5558407107d633b.zip |
2005-07-14 Frank Ch. Eigler <fche@redhat.com>
* alloc.c (_stp_error): Rename, to avoid name collision with ../io.c.
-rw-r--r-- | runtime/user/ChangeLog | 4 | ||||
-rw-r--r-- | runtime/user/alloc.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/runtime/user/ChangeLog b/runtime/user/ChangeLog index 13350a65..9771edaa 100644 --- a/runtime/user/ChangeLog +++ b/runtime/user/ChangeLog @@ -1,3 +1,7 @@ +2005-07-14 Frank Ch. Eigler <fche@redhat.com> + + * alloc.c (_stp_error): Rename, to avoid name collision with ../io.c. + 2005-06-22 Martin Hunt <hunt@redhat.com> * runtime.h: Include config.h first then redefine CONFIG_SMP diff --git a/runtime/user/alloc.c b/runtime/user/alloc.c index 433a3ab0..c9d36f3f 100644 --- a/runtime/user/alloc.c +++ b/runtime/user/alloc.c @@ -21,7 +21,7 @@ void *malloc(size_t size); void free(void *ptr); enum errorcode { ERR_NONE=0, ERR_NO_MEM }; -enum errorcode _stp_error = ERR_NONE; +enum errorcode _stp_errorcode = ERR_NONE; /** Allocates memory within a probe. * This is used for small allocations from within a running @@ -35,7 +35,7 @@ void *_stp_alloc(size_t len) { void *ptr = malloc(len); if (unlikely(ptr == NULL)) - _stp_error = ERR_NO_MEM; + _stp_errorcode = ERR_NO_MEM; return ptr; } @@ -68,7 +68,7 @@ void *_stp_valloc(size_t len) if (likely(ptr)) memset(ptr, 0, len); else - _stp_error = ERR_NO_MEM; + _stp_errorcode = ERR_NO_MEM; return ptr; } |