diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-05-25 15:00:35 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-05-25 15:00:35 +0000 |
commit | 30d4ad935fafa91673e4c3880382ee6296584111 (patch) | |
tree | aa0379b1805bfae57637ec73aaa2199d10c19b41 /Build/source/texk/xdvipdfmx/src/pdfobj.c | |
parent | 7b00186ba550c87b73c55cec261d0282300aa5a6 (diff) |
code cleanup merged from dvipdfmx
git-svn-id: svn://tug.org/texlive/trunk@8346 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/pdfobj.c')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/pdfobj.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/pdfobj.c b/Build/source/texk/xdvipdfmx/src/pdfobj.c index ceed8cc527f..c61cede1c2f 100644 --- a/Build/source/texk/xdvipdfmx/src/pdfobj.c +++ b/Build/source/texk/xdvipdfmx/src/pdfobj.c @@ -1,4 +1,4 @@ -/* $Header: /home/cvsroot/dvipdfmx/src/pdfobj.c,v 1.57 2008/05/20 13:05:14 matthias Exp $ +/* $Header: /home/cvsroot/dvipdfmx/src/pdfobj.c,v 1.58 2008/05/22 10:08:02 matthias Exp $ This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. @@ -1521,7 +1521,7 @@ pdf_remove_dict (pdf_obj *dict, const char *name) TYPECHECK(dict, PDF_DICT); data = dict->data; - data_p = (pdf_dict **) &(dict->data); + data_p = (pdf_dict **) (void *) &(dict->data); while (data->key != NULL) { if (pdf_match_name(data->key, name)) { pdf_release_obj(data->key); @@ -1533,8 +1533,6 @@ pdf_remove_dict (pdf_obj *dict, const char *name) data_p = &(data->next); data = data->next; } - - return; } pdf_obj * @@ -2543,7 +2541,7 @@ pdf_get_object (pdf_file *pf, unsigned long obj_num, unsigned short obj_gen) error: WARN("Could not read object from object stream."); - result = pdf_new_null(); + return pdf_new_null(); } #define OBJ_FILE(o) (((pdf_indirect *)((o)->data))->pf) |