diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 13:08:27 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:09 +0200 |
commit | 3e8a6e576007892bab7d59367c5199a41fb1506d (patch) | |
tree | 297451b0b939f545185dea56f40ca28315ac90d5 /source3/utils | |
parent | ecc822faf8f1e2f34573aabef381a846b08afeec (diff) | |
download | samba-3e8a6e576007892bab7d59367c5199a41fb1506d.tar.gz samba-3e8a6e576007892bab7d59367c5199a41fb1506d.tar.bz2 samba-3e8a6e576007892bab7d59367c5199a41fb1506d.zip |
build: Remove sys_closedir wrapper
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_usershare.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c index c22c50fcdd..e9490d1fb9 100644 --- a/source3/utils/net_usershare.c +++ b/source3/utils/net_usershare.c @@ -249,7 +249,7 @@ static int get_share_list(TALLOC_CTX *ctx, const char *wcard, bool only_ours) basepath, n); if (!path) { - sys_closedir(dp); + closedir(dp); return -1; } @@ -280,19 +280,19 @@ static int get_share_list(TALLOC_CTX *ctx, const char *wcard, bool only_ours) /* (Finally) - add to list. */ fl = talloc(ctx, struct file_list); if (!fl) { - sys_closedir(dp); + closedir(dp); return -1; } fl->pathname = talloc_strdup(ctx, n); if (!fl->pathname) { - sys_closedir(dp); + closedir(dp); return -1; } DLIST_ADD(flist, fl); } - sys_closedir(dp); + closedir(dp); return 0; } @@ -588,7 +588,7 @@ static int count_num_usershares(void) basepath, n); if (!path) { - sys_closedir(dp); + closedir(dp); return -1; } @@ -610,7 +610,7 @@ static int count_num_usershares(void) num_usershares++; } - sys_closedir(dp); + closedir(dp); return num_usershares; } @@ -1123,7 +1123,7 @@ int net_usershare(struct net_context *c, int argc, const char **argv) } return -1; } - sys_closedir(dp); + closedir(dp); return net_run_function(c, argc, argv, "net usershare", func); } |