aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 11:41:25 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 11:41:25 +0000
commit23ec4b07a3224f817388301f64a3bea1066d828b (patch)
tree88cde02c2a8b79acb9a58e94d44b2cc686e12e9e /text2pcap.c
parent8e1c6eea8800b9c6b9a52a7ee90a897fb6cda442 (diff)
More 'char*' -> 'const char*' changes to fix warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15015 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/text2pcap.c b/text2pcap.c
index a1374af38f..9c5bedbb57 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -176,10 +176,10 @@ static guint32 ts_usec = 0;
static char *ts_fmt = NULL;
/* Input file */
-static char *input_filename;
+static const char *input_filename;
static FILE *input_file = NULL;
/* Output file */
-static char *output_filename;
+static const char *output_filename;
static FILE *output_file = NULL;
/* Offset base to parse */
@@ -330,7 +330,7 @@ static unsigned long pcap_link_type = 1; /* Default is DLT-EN10MB */
* Pass in TRUE if this is an offset, FALSE if not
*/
static unsigned long
-parse_num (char *str, int offset)
+parse_num (const char *str, int offset)
{
unsigned long num;
char *c;
@@ -347,7 +347,7 @@ parse_num (char *str, int offset)
* Write this byte into current packet
*/
static void
-write_byte (char *str)
+write_byte (const char *str)
{
unsigned long num;