From 3e8a6e576007892bab7d59367c5199a41fb1506d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 13:08:27 +1100 Subject: build: Remove sys_closedir wrapper --- source3/utils/net_usershare.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/utils') 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); } -- cgit