aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-23 22:49:23 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-23 22:49:23 +0000
commitffefcea3655d801cbe73f897a8f3df65e806f58f (patch)
tree30e2ec739ccffe6f19049153950e1d31f6604f66 /print.c
parent739ea19e171bb98781d452bbb2df4b903d3aa45b (diff)
Fix about 150 warnings new to gcc 4.0 in the error on warning directories.
Comment out -Werror in plugins/asn1/ until warnings can be fixed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21158 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'print.c')
-rw-r--r--print.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/print.c b/print.c
index 6f733fbc71..bfefd6690f 100644
--- a/print.c
+++ b/print.c
@@ -623,7 +623,7 @@ get_field_data(GSList *src_list, field_info *fi)
static void
print_escaped_xml(FILE *fh, const char *unescaped_string)
{
- const unsigned char *p;
+ const char *p;
for (p = unescaped_string; *p != '\0'; p++) {
switch (*p) {
@@ -810,7 +810,7 @@ print_hex_data_buffer(print_stream_t *stream, const guchar *cp,
* and advance the offset.
*/
line[k] = '\0';
- if (!print_line(stream, 0, line))
+ if (!print_line(stream, 0, (char*)line))
return FALSE;
ad += 16;
}
@@ -1013,7 +1013,7 @@ static gboolean
print_preamble_ps(print_stream_t *self, gchar *filename)
{
output_ps *output = self->data;
- char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
+ unsigned char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
print_ps_preamble(output->fh);
@@ -1021,7 +1021,7 @@ print_preamble_ps(print_stream_t *self, gchar *filename)
fputs("/Courier findfont 10 scalefont setfont\n", output->fh);
fputs("\n", output->fh);
fputs("%% the page title\n", output->fh);
- ps_clean_string(psbuffer, filename, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, (guchar*)filename, MAX_PS_LINE_LENGTH);
fprintf(output->fh, "/eth_pagetitle (%s - Wireshark) def\n", psbuffer);
fputs("\n", output->fh);
return !ferror(output->fh);
@@ -1031,9 +1031,9 @@ static gboolean
print_line_ps(print_stream_t *self, int indent, const char *line)
{
output_ps *output = self->data;
- char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
+ unsigned char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
- ps_clean_string(psbuffer, line, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, (guchar*)line, MAX_PS_LINE_LENGTH);
fprintf(output->fh, "%d (%s) putline\n", indent, psbuffer);
return !ferror(output->fh);
}
@@ -1042,7 +1042,7 @@ static gboolean
print_bookmark_ps(print_stream_t *self, const gchar *name, const gchar *title)
{
output_ps *output = self->data;
- char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
+ unsigned char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
/*
* See the Adobe "pdfmark reference":
@@ -1057,7 +1057,7 @@ print_bookmark_ps(print_stream_t *self, const gchar *name, const gchar *title)
*
* The "/DEST" creates the destination.
*/
- ps_clean_string(psbuffer, title, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, (guchar*)title, MAX_PS_LINE_LENGTH);
fprintf(output->fh, "[/Dest /%s /Title (%s) /OUT pdfmark\n", name,
psbuffer);
fputs("[/View [/XYZ -4 currentpoint matrix currentmatrix matrix defaultmatrix\n",