aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
commit8fd3ee05600dd7d0e6434e7eb824932c52000ce3 (patch)
treedc1df6288600e883ed53ac7e43a38a2d03abb9f3 /print.c
parent32780e71e8ce8c8fd1898cbcb62f6bc8a59341f3 (diff)
Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
Diffstat (limited to 'print.c')
-rw-r--r--print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print.c b/print.c
index 530932616a..9b39dd07e9 100644
--- a/print.c
+++ b/print.c
@@ -829,7 +829,7 @@ print_hex_data_buffer(print_stream_t *stream, const guchar *cp,
* and advance the offset.
*/
line[k] = '\0';
- if (!print_line(stream, 0, (char*)line))
+ if (!print_line(stream, 0, line))
return FALSE;
ad += 16;
}
@@ -1040,7 +1040,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, (guchar*)filename, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, filename, MAX_PS_LINE_LENGTH);
fprintf(output->fh, "/eth_pagetitle (%s - Wireshark) def\n", psbuffer);
fputs("\n", output->fh);
return !ferror(output->fh);
@@ -1052,7 +1052,7 @@ print_line_ps(print_stream_t *self, int indent, const char *line)
output_ps *output = self->data;
unsigned char psbuffer[MAX_PS_LINE_LENGTH]; /* static sized buffer! */
- ps_clean_string(psbuffer, (guchar*)line, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, line, MAX_PS_LINE_LENGTH);
fprintf(output->fh, "%d (%s) putline\n", indent, psbuffer);
return !ferror(output->fh);
}
@@ -1076,7 +1076,7 @@ print_bookmark_ps(print_stream_t *self, const gchar *name, const gchar *title)
*
* The "/DEST" creates the destination.
*/
- ps_clean_string(psbuffer, (guchar*)title, MAX_PS_LINE_LENGTH);
+ ps_clean_string(psbuffer, 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",