aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2005-07-22 07:55:51 +0000
committerJörg Mayer <jmayer@loplof.de>2005-07-22 07:55:51 +0000
commitf67b00ad9a7811424be4415ad3e04394ff747304 (patch)
treedfa698638532a7d158c1f4fe57013be80b33212e /wiretap
parenteb1ff24278c89a8308ffd2e1bcdc7161aac817fb (diff)
More 'char*' -> 'const char*' warning fixes
svn path=/trunk/; revision=14986
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/airopeek9.c6
-rw-r--r--wiretap/ascend.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/wiretap/airopeek9.c b/wiretap/airopeek9.c
index 7cf4f97475..8cc276f54a 100644
--- a/wiretap/airopeek9.c
+++ b/wiretap/airopeek9.c
@@ -84,10 +84,10 @@ static gboolean airopeekv9_seek_read(wtap *wth, long seek_off,
int *err, gchar **err_info);
static void airopeekv9_close(wtap *wth);
-static int wtap_file_read_pattern (wtap *wth, char *pattern, int *err)
+static int wtap_file_read_pattern (wtap *wth, const char *pattern, int *err)
{
int c;
- char *cp;
+ const char *cp;
cp = pattern;
while (*cp)
@@ -119,7 +119,7 @@ static int wtap_file_read_pattern (wtap *wth, char *pattern, int *err)
static int wtap_file_read_till_separator (wtap *wth, char *buffer, int buflen,
- char *separators, int *err)
+ const char *separators, int *err)
{
int c;
char *cp;
diff --git a/wiretap/ascend.c b/wiretap/ascend.c
index a411d78d60..3b239226ce 100644
--- a/wiretap/ascend.c
+++ b/wiretap/ascend.c
@@ -62,8 +62,8 @@
#define ASCEND_MAX_SEEK 100000
typedef struct _ascend_magic_string {
- guint type;
- gchar *strptr;
+ guint type;
+ const gchar *strptr;
} ascend_magic_string;
#define ASCEND_MAGIC_STRINGS 11
@@ -106,8 +106,8 @@ static long ascend_seek(wtap *wth, int max_seek, int *err)
while (((byte = file_getc(wth->fh)) != EOF) && bytes_read < max_seek) {
for (string_i = 0; string_i < ASCEND_MAGIC_STRINGS; string_i++) {
- gchar *strptr = ascend_magic[string_i].strptr;
- guint len = strlen(strptr);
+ const gchar *strptr = ascend_magic[string_i].strptr;
+ guint len = strlen(strptr);
if (byte == *(strptr + string_level[string_i])) {
string_level[string_i]++;