aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/xd.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-01-30 10:30:45 -0500
committerRuss Cox <rsc@swtch.com>2008-01-30 10:30:45 -0500
commit54dd92bebc97da7efb955f703c20cac8f4cbbb9f (patch)
tree4662b5d6e0a182b14afad3fbc49b6ba9eb558fe9 /src/cmd/xd.c
parent0206bd5113e727870d4eb24fbd5f17843745237d (diff)
parent0206bd5113e727870d4eb24fbd5f17843745237d (diff)
downloadplan9port-54dd92bebc97da7efb955f703c20cac8f4cbbb9f.tar.gz
plan9port-54dd92bebc97da7efb955f703c20cac8f4cbbb9f.tar.bz2
plan9port-54dd92bebc97da7efb955f703c20cac8f4cbbb9f.zip
merge
Diffstat (limited to 'src/cmd/xd.c')
-rw-r--r--src/cmd/xd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/xd.c b/src/cmd/xd.c
index 0d6e1bc3..ab485a32 100644
--- a/src/cmd/xd.c
+++ b/src/cmd/xd.c
@@ -11,7 +11,7 @@ int swizzle;
int flush;
int abase=2;
int xd(char *, int);
-void xprint(char *, long);
+void xprint(char *, ulong);
void initarg(void), swizz(void);
enum{
Narg=10
@@ -297,7 +297,7 @@ fmt2(char *f)
{
int i;
for(i=0; i<ndata; i+=sizeof(unsigned long))
- xprint(f, (data[i]<<24)|(data[i+1]<<16)|(data[i+2]<<8)|data[i+3]);
+ xprint(f, (u32int)((data[i]<<24)|(data[i+1]<<16)|(data[i+2]<<8)|data[i+3]));
}
void
@@ -346,7 +346,7 @@ fmtc(char *f)
}
void
-xprint(char *fmt, long d)
+xprint(char *fmt, ulong d)
{
if(Bprint(&bout, fmt, d)<0){
fprint(2, "xd: i/o error\n");