summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-04-09 14:59:10 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-04-09 14:59:10 +0000
commit8db63d6b244fe5c2cfb1bc3826cca2b9cdddef17 (patch)
tree0839ba1d0feacd2d378f479c08fb1ae68a3e545d
parent0677907d4a0f3fdd9d478e03946e7478e757a9a6 (diff)
downloadpw-darwin-8db63d6b244fe5c2cfb1bc3826cca2b9cdddef17.tar.gz
pw-darwin-8db63d6b244fe5c2cfb1bc3826cca2b9cdddef17.tar.zst
pw-darwin-8db63d6b244fe5c2cfb1bc3826cca2b9cdddef17.zip
Remove unused variables.
-rw-r--r--pw/cpdir.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pw/cpdir.c b/pw/cpdir.c
index d8fa42b..1eba348 100644
--- a/pw/cpdir.c
+++ b/pw/cpdir.c
@@ -46,7 +46,6 @@ static const char rcsid[] =
void
copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid)
{
- int rc = 0;
char src[MAXPATHLEN];
char dst[MAXPATHLEN];
@@ -61,9 +60,7 @@ copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid
++counter;
chown(dir, uid, gid);
- if (skel == NULL || *skel == '\0')
- rc = 1;
- else {
+ if (skel != NULL && *skel != '\0') {
DIR *d = opendir(skel);
if (d != NULL) {