summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorvikram <none@none>2005-06-20 11:17:31 -0700
committervikram <none@none>2005-06-20 11:17:31 -0700
commit1643b269ed639f097ec6e0ff17ebf9188c17ff7b (patch)
treef4f91738f4d5259c5fbfa29364f778487d309d17 /usr/src/cmd
parent351ec6e9ef428459084352eb05bce76f07f3ffb8 (diff)
downloadillumos-joyent-1643b269ed639f097ec6e0ff17ebf9188c17ff7b.tar.gz
6286129 fstyp doesn't recognize certain pcfs filesystems
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/fs.d/pcfs/fstyp/fstyp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/fs.d/pcfs/fstyp/fstyp.c b/usr/src/cmd/fs.d/pcfs/fstyp/fstyp.c
index cc6c08b339..c27a20e26c 100644
--- a/usr/src/cmd/fs.d/pcfs/fstyp/fstyp.c
+++ b/usr/src/cmd/fs.d/pcfs/fstyp/fstyp.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -83,7 +83,7 @@ extern offset_t llseek();
*/
#define PC_NSEC(a) ((unsigned short)((a[20]<<8)+a[19]))
#define PC_BIGNSEC(a) ((unsigned)((a[35]<<24)+(a[34]<<16)+(a[33]<<8)+a[32]))
-#define PC_SPF(a) ((unsigned short)(a[23]<<8)+a[22])
+#define PC_SPF(a) ((unsigned short)((a[23]<<8)+a[22]))
#define PC_BIGSPF(a) ((unsigned)((a[39]<<24)+(a[38]<<16)+(a[37]<<8)+a[36]))
/*
@@ -144,7 +144,7 @@ usage()
dumpfs(name)
char *name;
{
- char buf[DEV_BSIZE];
+ unsigned char buf[DEV_BSIZE];
char label[LABEL_SIZE+1];
unsigned char media;
@@ -242,7 +242,7 @@ unsigned char media_type;
}
}
-well_formed(char bs[])
+well_formed(unsigned char bs[])
{
int fatmatch;