From 9ff032320da86c88b481f68886cdda713ed136fa Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 18 Apr 2000 02:09:50 +0000 Subject: ReadDirName calls vfs->readdirname calls dos_readdirname. replaced with readdirname. ditto for OpenDir and CloseDir. (This used to be commit a0afe0d5f8378463b1e47cd779aee3af98c1940a) --- source3/smbd/chgpasswd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 4131ae61ca..df1f92f5ce 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -57,7 +57,7 @@ static int findpty(char **slave) { int master; static fstring line; - void *dirp; + DIR *dirp; char *dpname; #if defined(HAVE_GRANTPT) @@ -86,10 +86,10 @@ static int findpty(char **slave) fstrcpy(line, "/dev/ptyXX"); - dirp = OpenDir(NULL, "/dev", False); + dirp = opendir("/dev"); if (!dirp) return (-1); - while ((dpname = ReadDirName(dirp)) != NULL) + while ((dpname = readdirname(dirp)) != NULL) { if (strncmp(dpname, "pty", 3) == 0 && strlen(dpname) == 5) { @@ -103,12 +103,12 @@ static int findpty(char **slave) DEBUG(3, ("pty: opened %s\n", line)); line[5] = 't'; *slave = line; - CloseDir(dirp); + closedir(dirp); return (master); } } } - CloseDir(dirp); + closedir(dirp); return (-1); } -- cgit