summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-05 12:36:23 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-05 12:36:23 +0000
commita2297c720388bd098394552590dd9120622f97c5 (patch)
tree8b9dc0cc18c0b9e38b6082cf63b082bde1f16c03
parentb79773d3c71182c981af7dbf14b775bb83be52c8 (diff)
downloadsamba-a2297c720388bd098394552590dd9120622f97c5.tar.gz
samba-a2297c720388bd098394552590dd9120622f97c5.tar.bz2
samba-a2297c720388bd098394552590dd9120622f97c5.zip
fixed some cast warnings from "cc -64" on IRIX
(This used to be commit 624097e8f4a104393865ee100e884f000ca3f6df)
-rw-r--r--source3/smbd/dir.c7
-rw-r--r--source3/smbd/trans2.c8
2 files changed, 8 insertions, 7 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 03864334eb..da907b27a2 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -355,7 +355,8 @@ BOOL dptr_fill(char *buf1,unsigned int key)
return(False);
}
offset = TellDir(p);
- DEBUG(6,("fill on key %d dirptr 0x%x now at %d\n",key,(unsigned)p,offset));
+ DEBUG(6,("fill on key %ld dirptr 0x%x now at %d\n",key,
+ (long)p,offset));
buf[0] = key;
SIVAL(buf,1,offset | DPTR_MASK);
return(True);
@@ -446,8 +447,8 @@ BOOL get_dir_entry(connection_struct *conn,char *mask,int dirtype,char *fname,
{
dname = ReadDirName(conn->dirptr);
- DEBUG(6,("readdir on dirptr 0x%x now at offset %d\n",
- (unsigned)conn->dirptr,TellDir(conn->dirptr)));
+ DEBUG(6,("readdir on dirptr 0x%lx now at offset %d\n",
+ (long)conn->dirptr,TellDir(conn->dirptr)));
if (dname == NULL)
return(False);
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 6d2f61f5b9..c075ae6c1b 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -353,8 +353,8 @@ static int get_lanman2_dir_entry(connection_struct *conn,
reskey = 0;
- DEBUG(8,("get_lanman2_dir_entry:readdir on dirptr 0x%x now at offset %d\n",
- (unsigned)conn->dirptr,TellDir(conn->dirptr)));
+ DEBUG(8,("get_lanman2_dir_entry:readdir on dirptr 0x%lx now at offset %d\n",
+ (long)conn->dirptr,TellDir(conn->dirptr)));
if (!dname)
return(False);
@@ -905,9 +905,9 @@ resume_key = %d resume name = %s continue=%d level = %d\n",
/* Get the attr mask from the dptr */
dirtype = dptr_attr(dptr_num);
- DEBUG(3,("dptr_num is %d, mask = %s, attr = %x, dirptr=(0x%X,%d)\n",
+ DEBUG(3,("dptr_num is %d, mask = %s, attr = %x, dirptr=(0x%lX,%d)\n",
dptr_num, mask, dirtype,
- (unsigned)conn->dirptr,
+ (long)conn->dirptr,
TellDir(conn->dirptr)));
/* We don't need to check for VOL here as this is returned by