summaryrefslogtreecommitdiffstats
path: root/source/lib/genrand.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-25 21:17:20 +0000
committerJeremy Allison <jra@samba.org>1998-11-25 21:17:20 +0000
commit6acb4b68f68d516e2ac3c47e500f5600d653435e (patch)
tree4417f4c67b94192480fe5139f5c62923f203d15e /source/lib/genrand.c
parent68342a29a892e515cf2b22d759476d61944bcd59 (diff)
downloadsamba-6acb4b68f68d516e2ac3c47e500f5600d653435e.tar.gz
samba-6acb4b68f68d516e2ac3c47e500f5600d653435e.tar.xz
samba-6acb4b68f68d516e2ac3c47e500f5600d653435e.zip
Makefile.in: Added maintainer mode fixes.
aclocal.m4: Added AC_LIBTESTFUNC. configure.in: Fixed -lsecurity -lsec problems. client.c: dos_ fixes. groupdb/aliasunix.c: Dead code removal. include/includes.h: Added default PRINTCAP_NAME. lib/genrand.c: dos_ fixes. lib/replace.c: Added strtoul. lib/system.c: dos_ fixes. lib/util.c: dos_ fixes. lib/util_sid.c: Signed/unsigned fixes. lib/util_str.c: removed bad const. locking/locking_slow.c: dos_ fixes. printing/printing.c: dos_ fixes. rpc_server/srv_samr.c: Dead code removal. rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN ! smbd/dir.c: dos_ fixes. smbd/open.c: dos_ fixes. smbd/oplock.c: dos_ fixes. smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes. Jeremy.
Diffstat (limited to 'source/lib/genrand.c')
-rw-r--r--source/lib/genrand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/genrand.c b/source/lib/genrand.c
index 8b05b02f943..90e4a3194e1 100644
--- a/source/lib/genrand.c
+++ b/source/lib/genrand.c
@@ -56,7 +56,7 @@ static void do_filehash(char *fname, unsigned char *hash)
static void do_dirrand(char *name, unsigned char *buf, int buf_len)
{
- void *dp = dos_opendir(name);
+ DIR *dp = opendir(name);
pstring fullname;
int len_left;
int fullname_len;
@@ -86,7 +86,7 @@ static void do_dirrand(char *name, unsigned char *buf, int buf_len)
if(strlen(p) <= len_left)
pstrcpy(pos, p);
- if(dos_stat(fullname,&st) == 0) {
+ if(sys_stat(fullname,&st) == 0) {
SIVAL(buf, ((counter * 4)%(buf_len-4)),
IVAL(buf,((counter * 4)%(buf_len-4))) ^ st.st_atime);
counter++;