summaryrefslogtreecommitdiff
path: root/pxl
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-04-29 18:34:21 +0000
committerRobin Watts <robin.watts@artifex.com>2010-04-29 18:34:21 +0000
commit273fd57442e23c0d78afa35656221e6960c0e60e (patch)
tree73ed7396d10dbe6e2f32e8117efbfa9d5f68e6c4 /pxl
parentc845228673ccfcdd9c91cd361d88e85037a8b2af (diff)
A light sprinkling of casts (mostly between byte and char) to silence
compiler warnings. No expected differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11155 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pxl')
-rw-r--r--pxl/pxffont.c2
-rw-r--r--pxl/pxstream.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/pxl/pxffont.c b/pxl/pxffont.c
index 273e9497b..f544e42e7 100644
--- a/pxl/pxffont.c
+++ b/pxl/pxffont.c
@@ -135,7 +135,7 @@ px_find_font(px_value_t *pfnv, uint symbol_set, px_font_t **ppxfont,
const char *default_font = "Courier ";
char message[px_max_error_line + 1];
default_font_value.type = pxd_ubyte | pxd_array;
- default_font_value.value.array.data = default_font;
+ default_font_value.value.array.data = (const byte *)default_font;
default_font_value.value.array.size = strlen(default_font);
code = px_find_existing_font(&default_font_value, ppxfont, pxs);
/* shouldn't fail */
diff --git a/pxl/pxstream.c b/pxl/pxstream.c
index 391179a95..e432a6653 100644
--- a/pxl/pxstream.c
+++ b/pxl/pxstream.c
@@ -163,13 +163,13 @@ pxExecStream(px_args_t *par, px_state_t *pxs)
default: return_error(errorUnsupportedBinding);
}
if ( def_size < 16 ||
- strncmp(def_data + 1, " HP-PCL XL", 10)
+ strncmp((const char *)def_data + 1, " HP-PCL XL", 10)
)
return_error(errorUnsupportedClassName);
/* support protocol level 1, 2 and 3 */
- if ( strncmp(def_data + 11, ";1;", 3) &&
- strncmp(def_data + 11, ";2;", 3) &&
- strncmp(def_data + 11, ";3;", 3) )
+ if ( strncmp((const char *)def_data + 11, ";1;", 3) &&
+ strncmp((const char *)def_data + 11, ";2;", 3) &&
+ strncmp((const char *)def_data + 11, ";3;", 3) )
return_error(errorUnsupportedProtocol);
start = memchr(def_data + 14, '\n', def_size - 14);
if ( !start )