aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/nettl.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-26 00:20:09 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-26 00:20:09 +0000
commitf48ff36e64b8a10e9b686f32797ffc2521d15586 (patch)
tree22898e1f0b09cbd4ddf0697c882a93334702984a /wiretap/nettl.c
parent0d959bbec041ef3e2943fbcd7b6d2a25118d1ad1 (diff)
Use unsigned character pointers and arrays rather than signed character
pointers and arrays in a number of places, to remove warnings some compilers give. svn path=/trunk/; revision=2160
Diffstat (limited to 'wiretap/nettl.c')
-rw-r--r--wiretap/nettl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c
index 6597a97260..cd57ef2889 100644
--- a/wiretap/nettl.c
+++ b/wiretap/nettl.c
@@ -1,6 +1,6 @@
/* nettl.c
*
- * $Id: nettl.c,v 1.13 2000/05/19 23:06:57 gram Exp $
+ * $Id: nettl.c,v 1.14 2000/07/26 00:20:08 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -32,10 +32,10 @@
#include "buffer.h"
#include "nettl.h"
-static char nettl_magic_hpux9[12] = {
+static u_char nettl_magic_hpux9[12] = {
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xD0, 0x00
};
-static char nettl_magic_hpux10[12] = {
+static u_char nettl_magic_hpux10[12] = {
0x54, 0x52, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80
};
@@ -70,7 +70,7 @@ static int nettl_seek_read(wtap *wth, int seek_off,
static int nettl_read_rec_header(wtap *wth, FILE_T fh,
struct wtap_pkthdr *phdr, union wtap_pseudo_header *pseudo_header,
int *err);
-static int nettl_read_rec_data(FILE_T fh, char *pd, int length, int *err);
+static int nettl_read_rec_data(FILE_T fh, u_char *pd, int length, int *err);
static void nettl_close(wtap *wth);
int nettl_open(wtap *wth, int *err)
@@ -289,7 +289,7 @@ nettl_read_rec_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
}
static int
-nettl_read_rec_data(FILE_T fh, char *pd, int length, int *err)
+nettl_read_rec_data(FILE_T fh, u_char *pd, int length, int *err)
{
int bytes_read;