diff options
author | Luke Leighton <lkcl@samba.org> | 2000-04-18 02:09:50 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-04-18 02:09:50 +0000 |
commit | a0afe0d5f8378463b1e47cd779aee3af98c1940a (patch) | |
tree | 5f50c76316d40dc75394ef1b29d9f9357eda0dda /source/smbd/chgpasswd.c | |
parent | 462ea8b7fdaa528c3e9bfaca4fdd031888157124 (diff) | |
download | samba-a0afe0d5f8378463b1e47cd779aee3af98c1940a.tar.gz samba-a0afe0d5f8378463b1e47cd779aee3af98c1940a.tar.xz samba-a0afe0d5f8378463b1e47cd779aee3af98c1940a.zip |
ReadDirName calls vfs->readdirname calls dos_readdirname.
replaced with readdirname. ditto for OpenDir and CloseDir.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r-- | source/smbd/chgpasswd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 4131ae61caf..df1f92f5ced 100644 --- a/source/smbd/chgpasswd.c +++ b/source/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); } |