aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2005-07-23 11:41:25 +0000
committerJörg Mayer <jmayer@loplof.de>2005-07-23 11:41:25 +0000
commit30a855786822f15108e3a9d4dbd5579cd656abba (patch)
tree88cde02c2a8b79acb9a58e94d44b2cc686e12e9e /text2pcap.c
parentcb4ac62893d38d74efc89f5d5c90c7451dc421a4 (diff)
More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
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;