summaryrefslogtreecommitdiff
path: root/parsenfsfh.c
diff options
context:
space:
mode:
authorguy <guy>2002-04-24 06:27:05 +0000
committerguy <guy>2002-04-24 06:27:05 +0000
commit2fd1118636e3b33d28037eb9f19b06061da72416 (patch)
treec9f43bce3ffb74b6aebd069dc9b93697b3e59bb8 /parsenfsfh.c
parentb2cfabc32d463acb40d1d44218a26cb937a6d81e (diff)
downloadtcpdump-2fd1118636e3b33d28037eb9f19b06061da72416.tar.gz
Get rid of casts of pointers-to-const to pointers-to-nonconst.
Diffstat (limited to 'parsenfsfh.c')
-rw-r--r--parsenfsfh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/parsenfsfh.c b/parsenfsfh.c
index eb1313ff..57e39681 100644
--- a/parsenfsfh.c
+++ b/parsenfsfh.c
@@ -42,7 +42,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.23 2001-09-17 21:57:53 fenner Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.24 2002-04-24 06:27:06 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -108,11 +108,11 @@ static const char rcsid[] =
((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24))
#endif
-static int is_UCX(unsigned char *);
+static int is_UCX(const unsigned char *);
void
Parse_fh(fh, len, fsidp, inop, osnamep, fsnamep, ourself)
-register caddr_t *fh;
+register const unsigned char *fh;
int len;
my_fsid *fsidp;
ino_t *inop;
@@ -120,7 +120,7 @@ const char **osnamep; /* if non-NULL, return OS name here */
const char **fsnamep; /* if non-NULL, return server fs name here (for VMS) */
int ourself; /* true if file handle was generated on this host */
{
- register unsigned char *fhp = (unsigned char *)fh;
+ register const unsigned char *fhp = fh;
u_int32_t temp;
int fhtype = FHT_UNKNOWN;
int i;
@@ -436,7 +436,7 @@ int ourself; /* true if file handle was generated on this host */
*/
static int
is_UCX(fhp)
-unsigned char *fhp;
+const unsigned char *fhp;
{
register int i;
int seen_null = 0;