diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-10-04 19:13:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-10-04 19:13:17 -0700 |
commit | 2daccee698507b27113e89b07af371905aa2bcd4 (patch) | |
tree | 44d557390c492173754d09e361a8283775a342a5 /src/encparse.c | |
parent | b00dcc90e490454fdd983b4bf6d0fa92ab91d0be (diff) |
Clear sparse warnings: Using plain integer as NULL pointer
Diffstat (limited to 'src/encparse.c')
-rw-r--r-- | src/encparse.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/encparse.c b/src/encparse.c index 784697b..28e0181 100644 --- a/src/encparse.c +++ b/src/encparse.c @@ -548,10 +548,10 @@ parseEncodingFile(FontFilePtr f, int headerOnly) mapping->type = FONT_ENCODING_UNICODE; mapping->pid = 0; mapping->eid = 0; - mapping->recode = 0; - mapping->name = 0; - mapping->client_data = 0; - mapping->next = 0; + mapping->recode = NULL; + mapping->name = NULL; + mapping->client_data = NULL; + mapping->next = NULL; goto mapping; } else if(!strcasecmp(keyword_value, "cmap")) { mapping = (FontMapPtr)xalloc(sizeof(FontMapRec)); @@ -560,10 +560,10 @@ parseEncodingFile(FontFilePtr f, int headerOnly) mapping->type = FONT_ENCODING_TRUETYPE; mapping->pid = value1; mapping->eid = value2; - mapping->recode = 0; - mapping->name = 0; - mapping->client_data = 0; - mapping->next = 0; + mapping->recode = NULL; + mapping->name = NULL; + mapping->client_data = NULL; + mapping->next = NULL; goto mapping; } else if(!strcasecmp(keyword_value, "postscript")) { mapping = (FontMapPtr)xalloc(sizeof(FontMapRec)); @@ -572,10 +572,10 @@ parseEncodingFile(FontFilePtr f, int headerOnly) mapping->type = FONT_ENCODING_POSTSCRIPT; mapping->pid = 0; mapping->eid = 0; - mapping->recode = 0; - mapping->name = 0; - mapping->client_data = 0; - mapping->next = 0; + mapping->recode = NULL; + mapping->name = NULL; + mapping->client_data = NULL; + mapping->next = NULL; goto string_mapping; } else { /* unknown mapping type -- ignore */ goto skipmapping; @@ -621,12 +621,12 @@ parseEncodingFile(FontFilePtr f, int headerOnly) } else { sm->first = 0; sm->len = 0; - sm->map = 0; + sm->map = NULL; } for(i=0; i < sm->len; i++) sm -> map[i] = enc[first+i]; install_mapping(encoding, mapping); - mapping = 0; + mapping = NULL; first = 0xFFFF; last=0; goto no_mapping; @@ -702,7 +702,7 @@ parseEncodingFile(FontFilePtr f, int headerOnly) for(i = 0; i < sn->len; i++) sn->map[i] = nam[first+i]; install_mapping(encoding,mapping); - mapping = 0; + mapping = NULL; first = 0xFFFF; last=0; goto no_mapping; case NAME_LINE: @@ -785,7 +785,7 @@ error: for(i = 0; i < numaliases; i++) xfree(aliases[i]); /* We don't need to free sn and sm as they handled locally in the body.*/ - return 0; + return NULL; } char* @@ -961,7 +961,7 @@ FontEncIdentify(const char *fileName) for(alias = encoding->aliases; *alias; alias++, name++) *name = *alias; - *name = 0; + *name = NULL; xfree(encoding->aliases); xfree(encoding); |