diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-11-12 07:01:39 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-11-12 07:01:39 +0100 |
commit | 67781c58fef0f94ea234341cea8e7e13646bc4a2 (patch) | |
tree | 97504921cb5ac011a8c06ca4964b1d333f6c5ac1 /base/error.c | |
parent | 1be84ed1d4fbe44387222995a124a4f84ee55210 (diff) | |
download | mupdf-67781c58fef0f94ea234341cea8e7e13646bc4a2.tar.xz |
some renames
Diffstat (limited to 'base/error.c')
-rw-r--r-- | base/error.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/error.c b/base/error.c index d7065dbd..926c48dc 100644 --- a/base/error.c +++ b/base/error.c @@ -20,7 +20,7 @@ fz_throw1(char *fmt, ...) eo = fz_malloc(sizeof(fz_error)); if (!eo) return fz_outofmem; - eo->nrefs = 1; + eo->refs = 1; strlcpy(eo->func, "unknown", sizeof eo->func); strlcpy(eo->file, "unknown", sizeof eo->file); eo->line = 0; @@ -42,7 +42,7 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...) eo = fz_malloc(sizeof(fz_error)); if (!eo) return fz_outofmem; - eo->nrefs = 1; + eo->refs = 1; strlcpy(eo->func, func, sizeof eo->func); strlcpy(eo->file, file, sizeof eo->file); eo->line = line; @@ -61,9 +61,9 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...) void fz_droperror(fz_error *eo) { - if (eo->nrefs > 0) - eo->nrefs--; - if (eo->nrefs == 0) + if (eo->refs > 0) + eo->refs--; + if (eo->refs == 0) fz_free(eo); } |